Description
The WorldPoint
method of the PhysicsBody
class is used to convert a point from local space to world space. This method takes a Vector3
parameter representing the point in local coordinates and returns a PhysicsPoint
object that represents the point in world coordinates.
Usage
To use the WorldPoint
method, you need to have an instance of PhysicsBody
. Call the method with a Vector3
parameter that specifies the local point you want to convert to world space.
Example
// Assuming 'physicsBody' is an instance of PhysicsBody
Vector3 localPoint = new Vector3(1.0f, 2.0f, 3.0f);
PhysicsPoint worldPoint = physicsBody.WorldPoint(localPoint);
// 'worldPoint' now contains the world space coordinates of the local point.