self:get_axis_lock
Client
Checks whether a specific movement axis is locked on the static body
Syntax
local result = self:get_axis_lock(
axis
)Parameters
| Type | Name | Description |
|---|---|---|
int | axis | Axis enum value — refer to physics.static.axis |
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if the axis is locked, false otherwise |
Examples
local entity = physics.static.create()
core.engine.print("info", "Static body axis lock:", entity:get_axis_lock(physics.static.axis.LINEAR_X))