Transform Transform { get; set; }

robot_2Generated
code_blocksInput

Description

The Transform property of the PhysicsPoint struct represents the transform of this point in world space. It provides the position, rotation, and scale of the point as it exists in the global coordinate system, allowing you to understand and manipulate the point's location and orientation relative to the entire scene.

Usage

Use the Transform property to get or set the world space transform of a PhysicsPoint. This is particularly useful when you need to determine the global position and orientation of a point on a physics body, or when you need to apply transformations that affect the point's position and rotation in the world.

Example

// Example of accessing the Transform property of a PhysicsPoint
PhysicsPoint point = new PhysicsPoint();
Transform worldTransform = point.Transform;

// Use the worldTransform to get the position and rotation in world space
Vector3 worldPosition = worldTransform.Position;
Rotation worldRotation = worldTransform.Rotation;

// Example of setting a new Transform
Transform newTransform = new Transform(new Vector3(10, 0, 0), Rotation.From(0, 90, 0));
point.Transform = newTransform;