self:set_constant_linear_velocity
Client
Sets the constant linear velocity the static body applies to bodies resting on it, such as a conveyor surface
Syntax
local status = self:set_constant_linear_velocity(
velocity
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | velocity | Velocity to apply as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = physics.static.create()
entity:set_constant_linear_velocity({2, 0, 0})