block.vel

Syntax

Vector Access

v = block.vel(ind)
block.vel(ind) = v

Get/set the rigid block velocity vector.

Returns:v - rigid block velocity vector
Accepts:v - rigid block velocity vector
Arguments:ind - block index

Component Access

f = block.vel.x(ind)
block.vel.x(ind) = f

Get/set the \(x\)-velocity of the rigid block.

Returns:f - \(x\)-velocity of the rigid block
Accepts:f - \(x\)-velocity of the rigid block
Arguments:ind - block index
f = block.vel.y(ind)
block.vel.y(ind) = f

Get/set the \(y\)-velocity of the rigid block.

Returns:f - \(y\)-velocity of the rigid block
Accepts:f - \(y\)-velocity of the rigid block
Arguments:ind - block index