|
Momentum Scripting v1
|
#include <GranularContacts.h>
Public Member Functions | |
| GranularRigidBodyContact () | |
| GranularRigidBodyContact (agx::Physics::ParticleGeometryContactPtr, agxSDK::Simulation *) | |
| std::shared_ptr< MaterialPair > | getContactMaterial () const |
| double | getDepth () |
| Vec3 | getForce () const |
| Vec3 | getFrictionalForce () const |
| std::shared_ptr< GranularBody > | getGranularBody () const |
| Vec3 | getNormal () const |
| Vec3 | getNormalForce () const |
| double | getNormalImpactForceMagnitude () const |
| Vec3 | getPoint () const |
| std::shared_ptr< RigidBody > | getRigidBody () const |
| bool | isImpacting () const |
A class describing a contact point between a GranularBody and a RigidBody.
| MOMENTUM_NAMESPACE::GranularRigidBodyContact::GranularRigidBodyContact | ( | agx::Physics::ParticleGeometryContactPtr | , |
| agxSDK::Simulation * | |||
| ) |
Create a wrapper around an agx::Physics::GranularBodyPtr.
| MOMENTUM_NAMESPACE::GranularRigidBodyContact::GranularRigidBodyContact | ( | ) |
Null-constructor.
| std::shared_ptr< MaterialPair > MOMENTUM_NAMESPACE::GranularRigidBodyContact::getContactMaterial | ( | ) | const |
Get the contact material that the collision is using.
| double MOMENTUM_NAMESPACE::GranularRigidBodyContact::getDepth | ( | ) |
Get the depth of the contact in meters, describing the size of the overlap.
| Vec3 MOMENTUM_NAMESPACE::GranularRigidBodyContact::getForce | ( | ) | const |
Get the force that this contact applies to its bodies in Newton.
| Vec3 MOMENTUM_NAMESPACE::GranularRigidBodyContact::getFrictionalForce | ( | ) | const |
Get the tangential force that this contact applies to its bodies in Newton.
Along the surface of the contact
| std::shared_ptr< GranularBody > MOMENTUM_NAMESPACE::GranularRigidBodyContact::getGranularBody | ( | ) | const |
Get the GranularBody in the contact.
| Vec3 MOMENTUM_NAMESPACE::GranularRigidBodyContact::getNormal | ( | ) | const |
Get the normal of this contact.
Orthogonal against the surface of the contact
| Vec3 MOMENTUM_NAMESPACE::GranularRigidBodyContact::getNormalForce | ( | ) | const |
Get the normal that this contact applies to its bodies in Newton.
Orthogonal against the surface of the contact
| double MOMENTUM_NAMESPACE::GranularRigidBodyContact::getNormalImpactForceMagnitude | ( | ) | const |
Returns the magnitude of the normal impact force if the contact is impacting.
| Vec3 MOMENTUM_NAMESPACE::GranularRigidBodyContact::getPoint | ( | ) | const |
Get the point of the contact in the world.
In meters.
| std::shared_ptr< RigidBody > MOMENTUM_NAMESPACE::GranularRigidBodyContact::getRigidBody | ( | ) | const |
Get the Rigid Body in the contact.
| bool MOMENTUM_NAMESPACE::GranularRigidBodyContact::isImpacting | ( | ) | const |
Returns true/false if the contact is impacting.