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