setAcceleration

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

Parameters

ax

The x-component of the acceleration.

ay

The y-component of the acceleration.


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

Parameters

ax

The x-component of the acceleration.

ay

The y-component of the acceleration.

az

The z-component of the acceleration.