ball.force.contact

Syntax

Vector Access

v = ball.force.contact(bp<,i>)
ball.force.contact(bp<,i>) = v

Get/set the ball contact force.

The contact force vector is defined as the sum of the contact force vectors acting on the ball and is updated during force-displacement calculation.

Returns:

v - contact force vector or component

Accepts:

v - contact force vector or component

Arguments:

bp - ball pointer

i - optional vector component

Component Access

f = ball.force.contact.x(bp)
ball.force.contact.x(bp) = f

Get/set the x-component of the ball contact force.

Returns:f - x-component of the ball contact force vector
Accepts:f - x-component of the ball contact force vector
Arguments:bp - ball pointer
f = ball.force.contact.y(bp)
ball.force.contact.y(bp) = f

Get/set the y-component of the ball contact force.

Returns:f - y-component of the ball contact force vector
Accepts:f - y-component of the ball contact force vector
Arguments:bp - ball pointer
f = ball.force.contact.z(bp) (3D ONLY)
ball.force.contact.z(bp) = f (3D ONLY)

Get/set the z-component of the ball contact force.

Returns:f - z-component of the ball contact force vector
Accepts:f - z-component of the ball contact force vector
Arguments:bp - ball pointer