contact.normal

Syntax

Vector Access

v = contact.normal(c<,i>)

Get the contact unit normal.

Returns:

v - contact unit normal vector

Arguments:

c - contact pointer

Component Access

f = contact.normal (c)->x

f = contact.normal.x(c)
contact.normal(c) = f

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

Returns:

f - \(x\)-component of the contact unit normal vector

Arguments:

c - contact pointer

Access other vector components (\(y\), \(z\) (3D ONLY)) by substituting the component name where \(x\) appears above. See Member Access Operator for information about accessing members from data types using ->.

Deprecated Component Access

Component access by adding an optional integer in the function arguments (e.g., f = contact.normal(c,3)) is deprecated. It remains available but will not be supported in future versions. See Component Access with Integers in FISH on the Deprecated Commands and FISH page for details.

This is hidden. Added to include remaining vector component access functions for inline help.

f = contact.normal.y(c)
f = contact.normal.z(c) (3D ONLY)

Get the \(x\)-component of the contact force in the global coordinate system.

Returns:

f - \(x\)-component of the contact contact force in the global coordinate system

Arguments:

c - contact pointer