self:set_shape_cylinder
Client
Assigns a cylinder shape to the collision shape
Syntax
local status = self:set_shape_cylinder(
radius,
height
)Parameters
| Type | Name | Description |
|---|---|---|
float | radius | Cylinder radius to apply |
float | height | Cylinder height to apply |
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_cylinder(0.4, 1.8)