physics.animatable.axis

Client

Enumeration of movement axes that can be individually locked on a physics body


Values

ConstantDescription
physics.animatable.axis.LINEAR_XLinear motion along the X axis
physics.animatable.axis.LINEAR_YLinear motion along the Y axis
physics.animatable.axis.LINEAR_ZLinear motion along the Z axis
physics.animatable.axis.ANGULAR_XAngular rotation around the X axis
physics.animatable.axis.ANGULAR_YAngular rotation around the Y axis
physics.animatable.axis.ANGULAR_ZAngular rotation around the Z axis

Examples

Lock the X linear axis on a body
local entity = physics.animatable.create()

entity:set_axis_lock(physics.animatable.axis.LINEAR_X, true)

On this page