bool Pitch { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Pitch property of the PhysicsLock struct in the Sandbox namespace is a boolean value that determines whether the pitch rotation of a physics object is locked. When set to true, the pitch rotation is constrained, preventing the object from rotating around the pitch 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 Pitch property, you need to have an instance of the PhysicsLock struct. You can then set or get the Pitch property to control the pitch rotation lock of a physics object.

Example usage:

PhysicsLock lockSettings = new PhysicsLock();
lockSettings.Pitch = true; // Lock the pitch rotation

Example

PhysicsLock lockSettings = new PhysicsLock();
lockSettings.Pitch = true; // Lock the pitch rotation