rblock.pos

Syntax

Vector Access

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

Get/set the rigid block position.

Returns:

v - rigid block position vector or component

Accepts:

v - rigid block position vector or component

Arguments:

p - rigid block pointer

i - optional vector component

Component Access

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

Get/set the x-component of the rigid block position.

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

Get/set the y-component of the rigid block position.

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

Get/set the z-component of the rigid block position.

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