Skip to content

PhysicsBodyComponent.InverseTransformDirection(Vector2) Method

Definition

Namespace: Brine2D.ECS.Components

Converts a direction vector from world space to local body space (rotation only, no translation). Returns the vector unchanged if the body has not yet been created.

public System.Numerics.Vector2 InverseTransformDirection(System.Numerics.Vector2 worldDirection);

Parameters

worldDirection System.Numerics.Vector2

Returns

System.Numerics.Vector2