self:set_shape_world_boundary
Client
Assigns an infinite boundary plane shape to the collision shape — useful for kill-floors or world edges
Syntax
local status = self:set_shape_world_boundary(
plane_normal,
plane_distance = 0
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | plane_normal | Normal of the infinite boundary plane as {x, y, z} |
float | plane_distance | Distance of the plane from the origin along its normal |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local body = physics.rigid.create()
local entity = physics.collision_shape.create(body)
entity:set_shape_world_boundary({0, 1, 0}, 0)