Simbody
|
Three constraint equations. More...
#include <Constraint.h>
Three constraint equations.
This constraint enforces coincident location between a point on one body and a point on another body.
The constraint is enforced by an internal (non-working) force applied at the spatial location of the point on body 2, on material points of each body that are coincident with that spatial location. Note that this is somewhat asymmetric when the ball is not properly assembled -- it acts as though the contact occurs at the point on body 2, *not* at the point on body 1.
The assembly condition is the same as the runtime constraint -- the two points can be brought together by driving the perr to zero.
SimTK::Constraint::Ball::Ball | ( | MobilizedBody & | body1, |
MobilizedBody & | body2 | ||
) |
SimTK::Constraint::Ball::Ball | ( | MobilizedBody & | body1, |
const Vec3 & | defaultPoint1, | ||
MobilizedBody & | body2, | ||
const Vec3 & | defaultPoint2 | ||
) |
Ball& SimTK::Constraint::Ball::setDefaultRadius | ( | Real | r | ) |
Real SimTK::Constraint::Ball::getDefaultRadius | ( | ) | const |
MobilizedBodyIndex SimTK::Constraint::Ball::getBody1MobilizedBodyIndex | ( | ) | const |
MobilizedBodyIndex SimTK::Constraint::Ball::getBody2MobilizedBodyIndex | ( | ) | const |
const Vec3& SimTK::Constraint::Ball::getDefaultPointOnBody1 | ( | ) | const |
const Vec3& SimTK::Constraint::Ball::getDefaultPointOnBody2 | ( | ) | const |
SimTK::Constraint::Ball::SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS | ( | Ball | , |
BallImpl | , | ||
Constraint | |||
) |