bool Roll { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Roll property of the PhysicsLock struct in the Sandbox namespace is a boolean value that determines whether the roll rotation of a physics object is locked. When set to true, the roll rotation is constrained, preventing the object from rotating around the roll axis. This can be useful in scenarios where you want to maintain a specific orientation or prevent unwanted rotations due to physics interactions.

Usage

To use the Roll property, you need to have an instance of the PhysicsLock struct. You can then set or get the Roll property to control the roll locking behavior of a physics object.

Example usage:

PhysicsLock lockSettings = new PhysicsLock();
lockSettings.Roll = true; // Lock the roll rotation

Example

PhysicsLock lockSettings = new PhysicsLock();
lockSettings.Roll = true; // Lock the roll rotation