Vector3 AngularVelocity { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The AngularVelocity property of the PhysicsGroup class is used to set the angular velocity for all physics bodies within the group. This property directly affects the AngularVelocity of each PhysicsBody in the group, allowing for synchronized rotational motion across multiple bodies.

Usage

To use the AngularVelocity property, simply assign a Vector3 value representing the desired angular velocity. This will apply the specified angular velocity to all bodies within the PhysicsGroup.

Example

// Example of setting the AngularVelocity for a PhysicsGroup
PhysicsGroup myPhysicsGroup = new PhysicsGroup();

// Set the angular velocity to rotate around the Y-axis
myPhysicsGroup.AngularVelocity = new Vector3(0, 1, 0);