static PhysicsPoint World( PhysicsBody body, System.Nullable<Vector3> worldPosition, System.Nullable<Rotation> worldRotation )

book_4_sparkGenerated
code_blocksInput

Description

The World method of the PhysicsPoint struct is a static method used to create a PhysicsPoint in world space. This method allows you to specify a physics body along with an optional world position and rotation, which are used to define the point's location and orientation in the world.

Usage

To use the World method, you need to provide a PhysicsBody instance as the first parameter. Optionally, you can provide a Vector3 for the world position and a Rotation for the world rotation. If these optional parameters are not provided, the method will use default values.

Example usage:

PhysicsBody myBody = new PhysicsBody();
Vector3? position = new Vector3(10, 20, 30);
Rotation? rotation = Rotation.From(45, 0, 0);

PhysicsPoint point = PhysicsPoint.World(myBody, position, rotation);

Example

PhysicsBody myBody = new PhysicsBody();
Vector3? position = new Vector3(10, 20, 30);
Rotation? rotation = Rotation.From(45, 0, 0);

PhysicsPoint point = PhysicsPoint.World(myBody, position, rotation);