Assembly: VRage.Game.dll

public interface IMyModAPINaturalGravityImplementation

Describes ModAPI implementation for natural gravity provider (any form, not only sphere)

Methods

Member Description
DoesTrajectoryIntersectNaturalGravity(RayD, double) Checks if the specified trajectory intersects any natural gravity wells.
GetGravityLimit() Gets distance between Position of gravity provider, and it's most distant point
GetGravityMultiplier(Vector3D) Get gravity scalar
GetProxyAABB(out BoundingBoxD) Get bounding box around gravity provider
GetWorldGravity(Vector3D) Gets gravity vector
GetWorldGravityNormalized(Vector3D) Gets gravity vector (normalized)
IsPositionInRange(Vector3D) Tests if the specified point is within the gravity of this entity.
OnPositionChanged(Vector3D) Called when position of gravity provider is changed