ball.vel

Syntax

Vector Access

v = ball.vel(bp<,i>)
ball.vel(bp<,i>) = v

Get/set the ball velocity.

Returns:

v - ball velocity vector or component

Accepts:

v - ball velocity vector or component

Arguments:

bp - ball pointer

i - optional vector component

Component Access

f = ball.vel.x(bp)
ball.vel.x(bp) = f

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

Returns:f - x-component of the ball velocity vector
Accepts:f - x-component of the ball velocity vector
Arguments:bp - ball pointer
f = ball.vel.y(bp)
ball.vel.y(bp) = f

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

Returns:f - y-component of the ball velocity vector
Accepts:f - y-component of the ball velocity vector
Arguments:bp - ball pointer
f = ball.vel.z(bp)
ball.vel.z(bp) = f

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

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