Skip to content

PhysicsBodyComponent.InverseTransformPoint(Vector2) Method

Definition

Namespace: Brine2D.ECS.Components

Converts a point from world space to local body space using the body's current live transform. Returns the point unchanged if the body has not yet been created.

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

Parameters

worldPoint System.Numerics.Vector2

Returns

System.Numerics.Vector2