|
Class for Frictionless contact (only needs a plane equation) More...
#include <SurgSim/Physics/ContactConstraintData.h>
Public Member Functions | |
| ContactConstraintData () | |
| Default constructor. More... | |
| virtual | ~ContactConstraintData () |
| Destructor. More... | |
| void | setPlaneEquation (const SurgSim::Math::Vector3d &n, double d) |
| Sets the plane equation of the frictionless contact. More... | |
| const SurgSim::Math::Vector3d & | getNormal () const |
| Gets the plane normal vector. More... | |
| double | getDistance () const |
| Gets the plane distance to the origin. More... | |
| double | getContactTime () const |
| Gets the time of contact for the collision. More... | |
| std::shared_ptr< Collision::Contact > | getContact () |
| void | setContact (const std::shared_ptr< Collision::Contact > &contacts) |
Public Member Functions inherited from SurgSim::Physics::ConstraintData | |
| ConstraintData () | |
| Default Constructor. More... | |
| virtual | ~ConstraintData () |
| Destructor. More... | |
Private Attributes | |
| SurgSim::Math::Vector3d | m_normal |
| Plane equation normal vector (normalized vector) More... | |
| double | m_distance |
| Plane equation distance to origin. More... | |
| std::shared_ptr< Collision::Contact > | m_contact |
| The contact that uses this constraint data. More... | |
Class for Frictionless contact (only needs a plane equation)
|
inline |
Default constructor.
|
inlinevirtual |
Destructor.
|
inline |
|
inline |
Gets the time of contact for the collision.
|
inline |
Gets the plane distance to the origin.
|
inline |
Gets the plane normal vector.
|
inline |
| contacts | The contacts that use this constraint data. |
|
inline |
Sets the plane equation of the frictionless contact.
| n | The plane normal (normalized vector) |
| d | The plane distance to the origin |
|
private |
The contact that uses this constraint data.
|
private |
Plane equation distance to origin.
|
private |
Plane equation normal vector (normalized vector)
1.8.13