physics.vehicle.axis
Client
Enumeration of movement axes that can be individually locked on a physics body
Values
| Constant | Description |
|---|---|
physics.vehicle.axis.LINEAR_X | Linear motion along the X axis |
physics.vehicle.axis.LINEAR_Y | Linear motion along the Y axis |
physics.vehicle.axis.LINEAR_Z | Linear motion along the Z axis |
physics.vehicle.axis.ANGULAR_X | Angular rotation around the X axis |
physics.vehicle.axis.ANGULAR_Y | Angular rotation around the Y axis |
physics.vehicle.axis.ANGULAR_Z | Angular rotation around the Z axis |
Examples
local entity = physics.vehicle.create()
entity:set_axis_lock(physics.vehicle.axis.LINEAR_X, true)