ball.spin

Syntax

Vector Access

v = ball.spin(b<,i>)
ball.spin(b<,i>) = v

Get/set the ball angular velocity.

Returns:

v - ball angular velocity vector or component

Accepts:

v - ball angular velocity vector or component

Arguments:

b - ball pointer

i - Optional vector component that ranges from {3 to 3 in 2D; 1 to 3 in 3D}.

Component Access

f = ball.spin.x(b) (3D ONLY)
ball.spin.x(b) = f (3D ONLY)

Get/set the x-component of the ball angular velocity.

Returns:f - x-component of the ball angular velocity vector
Accepts:f - x-component of the ball angular velocity vector
Arguments:b - ball pointer
f = ball.spin.y(b) (3D ONLY)
ball.spin.y(b) = f (3D ONLY)

Get/set the y-component of the ball angular velocity.

Returns:f - y-component of the ball angular velocity vector
Accepts:f - y-component of the ball angular velocity vector
Arguments:b - ball pointer
f = ball.spin.z(b)
ball.spin.z(b) = f

Get/set the z-component of the ball angular velocity.

Returns:f - z-component of the ball angular velocity vector
Accepts:f - z-component of the ball angular velocity vector
Arguments:b - ball pointer