ball.pos

Syntax

Vector Access

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

Get/set the ball position.

Returns:

v - ball position vector or component

Accepts:

v - ball position vector or component

Arguments:

bp - ball pointer

i - optional vector component

Component Access

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

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

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

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

Returns:f - y-component of the ball position vector
Accepts:f - y-component of the ball position vector
Arguments:bp - ball pointer
f = ball.pos.z(bp) (3D ONLY)
ball.pos.z(bp) = f (3D ONLY)

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

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