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