setVelocity

Sets both the x and y components of the 2D velocity of the Positionable2D object.

Parameters

vx

The x-component of the velocity.

vy

The y-component of the velocity.


Sets the x, y, and z components of the 3D velocity of the Positionable3D object.

Parameters

vx

The x-component of the velocity.

vy

The y-component of the velocity.

vz

The z-component of the velocity.