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.
Parameters
worldDirection System.Numerics.Vector2