bool Y { get; set; }

robot_2Generated
code_blocksInput

Description

The Y property of the PhysicsLock struct is a boolean value that determines whether the physics simulation for an object is locked along the Y-axis. When set to true, the object will not move along the Y-axis, effectively constraining its movement in that direction. This can be useful in scenarios where you want to restrict an object's movement to a specific plane or axis.

Usage

To use the Y property, you need to have an instance of the PhysicsLock struct. You can then set or get the value of Y to control the locking behavior along the Y-axis.

Example usage:

PhysicsLock lockSettings = new PhysicsLock();
lockSettings.Y = true; // Lock movement along the Y-axis

Example

PhysicsLock lockSettings = new PhysicsLock();
lockSettings.Y = true; // Lock movement along the Y-axis