Skip to content

PhysicsBodyComponent.GetVelocityAtPoint(Vector2) Method

Definition

Namespace: Brine2D.ECS.Components

Returns the velocity of this body at a given world-space point, accounting for both linear and angular velocity. Useful for computing impact speed at a contact point. Returns System.Numerics.Vector2.Zero if the body is not live.

public System.Numerics.Vector2 GetVelocityAtPoint(System.Numerics.Vector2 worldPoint);

Parameters

worldPoint System.Numerics.Vector2

The point in world (pixel) coordinates.

Returns

System.Numerics.Vector2