rblock.vel

Syntax

Vector Access

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

Get/set the rigid block velocity.

Returns:

v - rigid block velocity vector or component

Accepts:

v - rigid block velocity vector or component

Arguments:

p - rigid block pointer

i - optional vector component

Component Access

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

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

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

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

Returns:f - y-component of the rigid block velocity vector
Accepts:f - y-component of the rigid block velocity vector
Arguments:p - rigid block pointer
f = rblock.vel.z(p)
rblock.vel.z(p) = f

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

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