Vector3 PointToWorld( Vector3& localPoint )

robot_2Generated
code_blocksInput

Description

The PointToWorld method in the Transform struct is used to convert a point from local space to world space. This is particularly useful when you need to determine the global position of a point that is defined relative to a specific transform.

Usage

To use the PointToWorld method, you need to have a Transform instance. You pass a reference to a Vector3 representing the local point you want to convert. The method returns a Vector3 that represents the point in world space.

Example

// Example usage of Transform.PointToWorld
Transform transform = new Transform();
Vector3 localPoint = new Vector3(1, 2, 3);
Vector3 worldPoint = transform.PointToWorld(ref localPoint);

// worldPoint now contains the world space coordinates of the localPoint