self:is_on_wall
Client
Checks whether the character body is currently touching a wall
Syntax
local result = self:is_on_wall()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if the condition is met, false otherwise |
Examples
local entity = physics.character.create()
core.engine.print("info", "Character body on wall:", entity:is_on_wall())