rblock.ball.pos

Syntax

Vector Access

v = rblock.ball.pos(p<,i>)

Get the rigid block ball position. This is the position of the minimum enclosing {circle in 2D; sphere in 3D} with radius rblock.ball.radius.

Returns:

v - rigid block ball position vector or component

Arguments:

p - rigid block pointer

i - optional vector component

Component Access

f = rblock.ball.pos.x(p)

Get the x-component of the rigid block ball position.

Returns:f - x-component of the rigid block ball position vector
Arguments:p - rigid block pointer
f = rblock.ball.pos.y(p)

Get the y-component of the rigid block ball position.

Returns:f - y-component of the rigid block ball position vector
Arguments:p - rigid block pointer
f = rblock.ball.pos.z(p) (3D ONLY)

Get the z-component of the rigid block ball position.

Returns:f - z-component of the rigid block ball position vector
Arguments:p - rigid block pointer