Skip to content

PhysicsBodyComponent.GetWorldPosition() Method

Definition

Namespace: Brine2D.ECS.Components

Returns the physics-side world-space position of this body (body pivot, not entity origin). Includes the Offset — equivalent to transform.Position + Offset when the body is live. Returns System.Numerics.Vector2.Zero if the body has not yet been created.

public System.Numerics.Vector2 GetWorldPosition();

Returns

System.Numerics.Vector2