block.contact.pos

Syntax

Vector Access

v = block.contact.pos(ind)
block.contact.pos(ind) = v

Get/set the contact position vector.

Returns:v - contact normal vector
Accepts:v - contact normal vector
Arguments:ind - contact index

Component Access

f = block.contact.pos.x(ind)
block.contact.pos.x(ind) = f

Get/set the \(x\)-component of contact position.

Returns:f - \(x\)-component of contact position
Accepts:f - \(x\)-component of contact position
Arguments:ind - contact index
f = block.contact.pos.y(ind)
block.contact.pos.y(ind) = f

Get/set the \(y\)-component of contact position.

Returns:f - \(y\)-component of contact position
Accepts:f - \(y\)-component of contact position
Arguments:ind - contact index