Motion
Get Motion

ReferenceScripting APIBodyComponentsetVelocity

BodyComponent.setVelocity

method

Gives it a speed.

NamesetVelocity
Kindmethod of BodyComponent
Called asbodyComponent.setVelocity(…)
Since0.3

Syntax

setVelocity(v: Place): void

Parameters

NameTypeDescription
vPlaceThe speed, each way

Returns

Nothing.