setLinearVelocity
Sets the linear velocity of the object.
Syntax
object.setLinearVelocity(vector);
Parameters
Name | Type | Description |
---|---|---|
vector | Vector3Array | The linear velocity vector. |
Example
// make it jump
object.setLinearVelocity([0, 20, 0]);
Available on: Client Server