|
Momentum Scripting v1
|
#include <Simulation.h>
Public Types | |
| enum | ContactType { IMPACT = 1 , RESTING = 2 , IMPACT_AND_RESTING = (IMPACT & RESTING) } |
Friends | |
| Simulation * | getSimulation () |
This class is used to access an existing simulation with all its contents including joints, rigid bodies and contacts.
| void MOMENTUM_NAMESPACE::Simulation::addDisabledCollisionGroupPair | ( | const std::string & | name1, |
| const std::string & | name2 | ||
| ) |
Add a pair of geometry collision groups which will be disabled for contact generation.
Order of names is not important.
| name1 | - Name of first geometry collision group |
| name2 | - Name of second geometry collision group |
| std::shared_ptr< RigidBody > MOMENTUM_NAMESPACE::Simulation::createRigidBodyFromBodyModel | ( | const BodyModel * | bodymodel, |
| const Vec3 & | position, | ||
| const Quat & | rotation, | ||
| const Vec3 & | velocity | ||
| ) |
Create a rigid body from a distribution model.
Only available in simulation mode
| RigidBodyVector MOMENTUM_NAMESPACE::Simulation::filterRigidBodiesInGeometry | ( | const Geometry * | geometry, |
| const RigidBodyVector & | rigidBodies, | ||
| bool | onlyCheckForMidPoint | ||
| ) | const |
Return a subset of specified rigid bodies that intersect with a specified geometry.
| geometry | - The geometry that will be used in the intersection test. |
| onlyCheckForMidPoint | - True if only the midpoint of the body should be used in the intersection test, false all the shapes should be included in a collision test. |
| rigidBodies | - vector containing all rigid bodies that should be tested against the specified geometry. |
| std::shared_ptr< BallJoint > MOMENTUM_NAMESPACE::Simulation::getBallJoint | ( | const std::string & | name | ) | const |
Get a specific named BallJoint.
Returns nullptr if it could not be found.
| name | - the name of the joint |
| BallJointVector MOMENTUM_NAMESPACE::Simulation::getBallJoints | ( | ) | const |
Get all ball joints associated with the simulation.
| Vec3 MOMENTUM_NAMESPACE::Simulation::getContactForces | ( | const Geometry * | geometry1, |
| const Geometry * | geometry2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all contact (Normal and Friction) forces in world coordinate system between two geometries.
| geometry1 | - First matching geometry |
| geometry2 | - Second matching geometry (null matches any geometry) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getContactForces | ( | const RigidBody * | body1, |
| const RigidBody * | body2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all contact (Normal and Friction) forces in world coordinate system between two rigid bodies.
| body1 | - First rigid body |
| body2 | - Second rigid body (null matches any rigid body) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getContactForces | ( | const RigidBody * | rb, |
| const Geometry * | geo, | ||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all contact (Normal and Friction) forces in world coordinate system between a rigid body and a geometry.
| rb | - Matching rigid body |
| geo | - Matching geometry |
| type | - Specifies which type of contact force to be returned |
| ContactPointVector MOMENTUM_NAMESPACE::Simulation::getContacts | ( | const Geometry * | geometry1 = nullptr, |
| const Geometry * | geometry2 = nullptr |
||
| ) | const |
Get all contacts in the simulation for the current timestep that involves two specified geometries.
| geometry1 | - the first geometry involved in the matching contact. nullptr matches all geometries. |
| geometry | - the second geometry involved in the matching contact. nullptr matches all geometries. |
| ContactPointVector MOMENTUM_NAMESPACE::Simulation::getContacts | ( | const RigidBody * | body1, |
| const RigidBody * | body2 = nullptr |
||
| ) | const |
Get all contacts in the simulation for the current timestep that involves two specified RigidBodies.
| body1 | - the first body involved in the matching contact. nullptr matches all rigid bodies. |
| body2 | - the second body involved in the matching contact. nullptr matches all rigid bodies. |
| std::shared_ptr< ConveyorBelt > MOMENTUM_NAMESPACE::Simulation::getConveyorBelt | ( | const std::string & | name | ) | const |
Get a specific named Conveyor Belt.
Returns nullptr if it could not be found.
| name | - the name of the conveyor belt |
| ConveyorBeltVector MOMENTUM_NAMESPACE::Simulation::getConveyorBelts | ( | ) | const |
Get all conveyor belts associated with the simulation.
| std::shared_ptr< CylindricalJoint > MOMENTUM_NAMESPACE::Simulation::getCylindricalJoint | ( | const std::string & | name | ) | const |
Get a specific named CylindricalJoint.
Returns nullptr if it could not be found.
| name | - the name of the joint |
| CylindricalJointVector MOMENTUM_NAMESPACE::Simulation::getCylindricalJoints | ( | ) | const |
Get all cylindrical joints associated with the simulation.
| std::vector< std::pair< std::string, std::string > > MOMENTUM_NAMESPACE::Simulation::getDisabledCollisionGroupPairs | ( | ) | const |
Get a list of all disabled collision group pairs.
| RigidBodyVector MOMENTUM_NAMESPACE::Simulation::getEmittedBodies | ( | ) | const |
| std::shared_ptr< Emitter > MOMENTUM_NAMESPACE::Simulation::getEmitter | ( | const std::string & | name | ) | const |
Get a specific named Emitter.
Returns nullptr if it could not be found.
| name | the name of the emitter |
| EmitterVector MOMENTUM_NAMESPACE::Simulation::getEmitters | ( | ) | const |
Get all emitters associated with the simulation.
| Vec3 MOMENTUM_NAMESPACE::Simulation::getFrictionContactForces | ( | const Geometry * | geometry1, |
| const Geometry * | geometry2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all Friction contact forces in world coordinate system between two geometries.
| geometry1 | - First matching geometry |
| geometry2 | - Second matching geometry (null matches any geometry) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getFrictionContactForces | ( | const RigidBody * | body1, |
| const RigidBody * | body2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all Friction contact forces in world coordinate system between two rigid bodies.
| body1 | - first matching rigid body |
| body2 | - second matching rigid body (null matches any rigid body) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getFrictionContactForces | ( | const RigidBody * | rb, |
| const Geometry * | geo, | ||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all Friction contact forces in world coordinate system between a rigid body and a geometry.
| rb | - matching rigid body |
| geo | - matching geometry |
| type | - Specifies which type of contact force to be returned |
| GeometryVector MOMENTUM_NAMESPACE::Simulation::getGeometries | ( | ) | const |
Get all geometries associated with the simulation.
| std::shared_ptr< Geometry > MOMENTUM_NAMESPACE::Simulation::getGeometry | ( | const std::string & | name | ) | const |
Get a specific named Geometry .
Returns nullptr if it could not be found.
| name | - the name of the geometry |
| std::shared_ptr< Geometry > MOMENTUM_NAMESPACE::Simulation::getGeometry | ( | unsigned int | id | ) | const |
Get a specific Geometry given an id.
Returns nullptr if it could not be found.
| id | - the name of the geometry |
| std::shared_ptr< GranularBodySystem > MOMENTUM_NAMESPACE::Simulation::getGranularBodySystem | ( | ) | const |
Get the GranularBodySystem coupled to the active Simulation.
| GranularGranularContactVector MOMENTUM_NAMESPACE::Simulation::getGranularContacts | ( | const GranularBody * | granularBody = nullptr | ) | const |
Get granular contacts against a GranularBody.
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularGeometryContactForces | ( | const Geometry * | geometry = nullptr | ) |
Get sum of all contact (Normal and Friction) forces in world coordinate system between a geometry and the granular bodies in the simulation.
| geometry | - The geometry |
| GranularRigidBodyContactVector MOMENTUM_NAMESPACE::Simulation::getGranularGeometryContacts | ( | const Geometry * | geometry = nullptr | ) | const |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularGeometryFrictionContactForces | ( | const Geometry * | geometry = nullptr | ) |
Get sum of all Friction contact forces in world coordinate system between a geometry and the granular bodies in the simulation.
| geometry | - matching geometry |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularGeometryNormalContactForces | ( | const Geometry * | geometry = nullptr | ) |
Get sum of all Normal contact forces in world coordinate system between a geometry and granular bodies in the simulation.
| geometry | - matching geometry |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularGeometrySumAbsoluteContactForces | ( | const Geometry * | geometry = nullptr | ) |
Get sum of all absolute contact forces between a geometry.
| geometry | - matching geometry |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularGeometrySumAbsoluteFrictionContactForces | ( | const Geometry * | geometry = nullptr | ) |
Get sum of all absolute friction contact forces between a geometry and the granular bodies in the simulation.
| geometry | - matching geometry |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularGeometrySumAbsoluteNormalContactForces | ( | const Geometry * | geometry = nullptr | ) |
Get sum of all absolute normal contact forces between a geometry and the granular bodies in the simulation.
| geometry | - First matching geometry |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularRigidBodyContactForces | ( | const RigidBody * | body = nullptr | ) |
Get sum of all contact (Normal and Friction) forces in world coordinate system between a rigid bodies and granular bodies in the simulation.
| body | - The rigid body |
| GranularRigidBodyContactVector MOMENTUM_NAMESPACE::Simulation::getGranularRigidBodyContacts | ( | const RigidBody * | rigidBody = nullptr | ) | const |
Get granular contacts against a RigidBody.
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularRigidBodyFrictionContactForces | ( | const RigidBody * | body = nullptr | ) |
Get sum of all Friction contact forces in world coordinate system between a rigid body and the granular bodies in the simulation.
| body | - The rigid body |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularRigidBodyNormalContactForces | ( | const RigidBody * | body = nullptr | ) |
Get sum of all Normal contact forces in world coordinate system between a rigid body and the granular bodies in the simulation.
| body | - The rigid body |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularRigidBodySumAbsoluteContactForces | ( | const RigidBody * | body = nullptr | ) |
Get sum of all absolute contact forces between a rigid body and the granular bodies in the simulation.
| body | - First matching rigid body |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularRigidBodySumAbsoluteFrictionContactForces | ( | const RigidBody * | body = nullptr | ) |
Get sum of all absolute friction contact forces between a rigid body and the granular bodies in the simulation.
| body | - First matching rigid body |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGranularRigidBodySumAbsoluteNormalContactForces | ( | const RigidBody * | body = nullptr | ) |
Get sum of all absolute normal contact forces between a rigid body and the granular bodies in the simulation.
| body | - matching rigid body |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getGravity | ( | ) | const |
Get the uniform gravity in m/s^2.
| std::shared_ptr< HingeJoint > MOMENTUM_NAMESPACE::Simulation::getHingeJoint | ( | const std::string & | name | ) | const |
Get a specific named HingeJoint.
Returns nullptr if it could not be found.
| name | - the name of the joint |
| HingeJointVector MOMENTUM_NAMESPACE::Simulation::getHingeJoints | ( | ) | const |
Get all hinge joints associated with the simulation.
| double MOMENTUM_NAMESPACE::Simulation::getImpactSpeedThreshold | ( | ) | const |
| std::shared_ptr< Joint > MOMENTUM_NAMESPACE::Simulation::getJoint | ( | const std::string & | name | ) | const |
Get a specific named Joint.
Returns nullptr if it could not be found.
| name | - the name of the joint |
| JointVector MOMENTUM_NAMESPACE::Simulation::getJoints | ( | ) | const |
Get all joints associated with the simulation.
| std::shared_ptr< LockJoint > MOMENTUM_NAMESPACE::Simulation::getLockJoint | ( | const std::string & | name | ) | const |
Get a specific named LockJoint.
Returns nullptr if it could not be found.
| name | - the name of the joint |
| LockJointVector MOMENTUM_NAMESPACE::Simulation::getLockJoints | ( | ) | const |
Get all lock joints associated with the simulation.
| std::shared_ptr< Material > MOMENTUM_NAMESPACE::Simulation::getMaterial | ( | const std::string & | name | ) | const |
Get a specific named Material.
Returns nullptr if it could not be found.
| name | - the name of the material |
| std::shared_ptr< MaterialPair > MOMENTUM_NAMESPACE::Simulation::getMaterialPair | ( | const std::string & | firstName, |
| const std::string & | secondName | ||
| ) | const |
Get a specific MaterialPair between two named materials.
Returns nullptr if it could not be found.
| firstName | - the name of the first material |
| secondName | - the name of the second material |
| std::shared_ptr< MaterialPair > MOMENTUM_NAMESPACE::Simulation::getMaterialPair | ( | Material * | firstMaterial, |
| Material * | secondMaterial | ||
| ) | const |
Get a specific MaterialPair between two materials.
Returns nullptr if it could not be found.
| firstMaterial | - the first material |
| secondMaterial | - the second material |
| MaterialPairVector MOMENTUM_NAMESPACE::Simulation::getMaterialPairs | ( | ) | const |
Get all contact materials associated with the simulation.
| MaterialVector MOMENTUM_NAMESPACE::Simulation::getMaterials | ( | ) | const |
Get all materials associated with the simulation.
| Vec3 MOMENTUM_NAMESPACE::Simulation::getNormalContactForces | ( | const Geometry * | geometry1, |
| const Geometry * | geometry2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all Normal contact forces in world coordinate system between two geometries.
| geometry1 | - first matching geometry |
| geometry2 | - second matching geometry (null matches any geometry) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getNormalContactForces | ( | const RigidBody * | body1, |
| const RigidBody * | body2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all Normal contact forces in world coordinate system between two rigid bodies.
| body1 | - First matching rigid body |
| body2 | - Second matching rigid body (null matches any rigid body) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getNormalContactForces | ( | const RigidBody * | rb, |
| const Geometry * | geo, | ||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all Normal contact forces in world coordinate system between a rigid body and a geometry.
| rb | - matching rigid body |
| geo | - matching geometry |
| type | - Specifies which type of contact force to be returned |
| unsigned int MOMENTUM_NAMESPACE::Simulation::getNumImpactIterations | ( | ) | const |
| unsigned int MOMENTUM_NAMESPACE::Simulation::getNumParallelRestingIterations | ( | ) | const |
| unsigned int MOMENTUM_NAMESPACE::Simulation::getNumRestingIterations | ( | ) | const |
| std::shared_ptr< Observer > MOMENTUM_NAMESPACE::Simulation::getObserver | ( | const std::string & | name | ) | const |
Get a specific named ObserverFrame.
Returns nullptr if it could not be found.
| name | - the name of the observer |
| ObserverVector MOMENTUM_NAMESPACE::Simulation::getObservers | ( | ) | const |
Get all observers associated with the simulation.
| std::shared_ptr< PrismaticJoint > MOMENTUM_NAMESPACE::Simulation::getPrismaticJoint | ( | const std::string & | name | ) | const |
Get a specific named PrismaticJoint.
Returns nullptr if it could not be found.
| name | - the name of the joint |
| PrismaticJointVector MOMENTUM_NAMESPACE::Simulation::getPrismaticJoints | ( | ) | const |
Get all prismatic joints associated with the simulation.
| RigidBodyVector MOMENTUM_NAMESPACE::Simulation::getRigidBodies | ( | ) | const |
Get all rigid bodies associated with the simulation.
| std::shared_ptr< RigidBody > MOMENTUM_NAMESPACE::Simulation::getRigidBody | ( | const std::string & | name | ) | const |
Get a specific named RigidBody.
Returns nullptr if it could not be found.
| name | - the name of the rigid body |
| std::shared_ptr< Sensor > MOMENTUM_NAMESPACE::Simulation::getSensor | ( | const std::string & | name | ) | const |
| SensorVector MOMENTUM_NAMESPACE::Simulation::getSensors | ( | ) | const |
Get all Sensors associated with the simulation.
| std::shared_ptr< SpringJoint > MOMENTUM_NAMESPACE::Simulation::getSpringJoint | ( | const std::string & | name | ) | const |
Get a specific named SpringJoint.
Returns nullptr if it could not be found.
| name | - the name of the joint |
| SpringJointVector MOMENTUM_NAMESPACE::Simulation::getSpringJoints | ( | ) | const |
Get all spring joints associated with the simulation.
| Vec3 MOMENTUM_NAMESPACE::Simulation::getSumAbsoluteContactForces | ( | const Geometry * | geometry1, |
| const Geometry * | geometry2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all absolute contact forces between two geometries.
| geometry1 | - First matching geometry |
| geometry2 | - Second matching geometry (null matches any geometry) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getSumAbsoluteContactForces | ( | const RigidBody * | body1, |
| const RigidBody * | body2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all absolute contact forces between two rigid bodies.
| body1 | - First matching rigid body |
| body2 | - Second matching rigid body (null matches any rigid body) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getSumAbsoluteContactForces | ( | const RigidBody * | rb, |
| const Geometry * | geo, | ||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all absolute contact forces between a rigid body and a geometry.
| rb | - matching rigid body |
| geo | - matching geometry |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getSumAbsoluteFrictionContactForces | ( | const Geometry * | geometry1, |
| const Geometry * | geometry2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all absolute friction contact forces between two geometries.
| geometry1 | - First matching geometries |
| geometry2 | - Second matching geometry (null matches any geometry) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getSumAbsoluteFrictionContactForces | ( | const RigidBody * | body1, |
| const RigidBody * | body2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all absolute friction contact forces between two rigid bodies.
| body1 | - First matching rigid body |
| body2 | - Second matching rigid body (null matches any rigid body) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getSumAbsoluteFrictionContactForces | ( | const RigidBody * | rb, |
| const Geometry * | geo, | ||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all absolute friction contact forces between a rigid body and a geometry.
| rb | - matching rigid body |
| geo | - matching geometry |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getSumAbsoluteNormalContactForces | ( | const Geometry * | geometry1, |
| const Geometry * | geometry2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all absolute normal contact forces between two geometries.
| geometry1 | - First matching geometry |
| geometry2 | - Second matching geometry (null matches any geometry) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getSumAbsoluteNormalContactForces | ( | const RigidBody * | body1, |
| const RigidBody * | body2 = nullptr, |
||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all absolute normal contact forces between two rigid bodies.
| body1 | - First matching rigid body |
| body2 | - Second matching rigid body (null matches any rigid body) |
| type | - Specifies which type of contact force to be returned |
| Vec3 MOMENTUM_NAMESPACE::Simulation::getSumAbsoluteNormalContactForces | ( | const RigidBody * | rb, |
| const Geometry * | geo, | ||
| ContactType | type = IMPACT_AND_RESTING |
||
| ) |
Get sum of all absolute normal contact forces between two rigid bodies.
| rb | - matching rigid body |
| geo | - matching geometry |
| type | - Specifies which type of contact force to be returned |
| double MOMENTUM_NAMESPACE::Simulation::getTimeStep | ( | ) | const |
Get the current length of the time step in seconds.
| bool MOMENTUM_NAMESPACE::Simulation::loadGranularFile | ( | const std::string & | filename, |
| Material * | initMaterial, | ||
| const AffineMatrix4x4 & | offset = AffineMatrix4x4() |
||
| ) |
Load an .agx file that contains both granular and Non-Spherical-Shapes(NSS) bodies into the simulation.
| filename | - The specified file in .agx format that should be loaded |
| initMaterial | - the material that will be set on the objects loaded into the simulation. |
| offset | - an offset matrix that will be applied to the object's initial position and velocity. |
| bool MOMENTUM_NAMESPACE::Simulation::operator== | ( | const Simulation & | other | ) | const |
| bool MOMENTUM_NAMESPACE::Simulation::removeDisabledCollisionGroupPair | ( | const std::string & | name1, |
| const std::string & | name2 | ||
| ) |
Remove a pair of geometry collision groups to re-enable contact generation between two named geometry collision groups Order of names is not important.
| name1 | - Name of first geometry collision group |
| name2 | - Name of second geometry collision group |
| void MOMENTUM_NAMESPACE::Simulation::removeEmittedBodiesInGeometry | ( | const Geometry * | geometry | ) |
Utility method for quickly removing emitted Non-Spherical-Shapes(NSS) bodies currently inside the specified geometry.
| geometry | - the specified geometry that will be used to remove the bodies. |
| void MOMENTUM_NAMESPACE::Simulation::setGravity | ( | const Vec3 & | gravity | ) |
Set the uniform gravity of the simulation in m/s^2.
| gravity | - the new gravity vector |
Only available in simulation mode
| void MOMENTUM_NAMESPACE::Simulation::setImpactSpeedThreshold | ( | double | threshold | ) |
Set the speed threshold for when to trigger impacts in contacts according to Newton's impact law.
| threshold | - the speed threshold to trigger impacts. |
Only available in simulation mode
| size_t MOMENTUM_NAMESPACE::Simulation::write | ( | const std::string & | filename | ) |
Write current simulation state to a file in native .aagx/.agx format, depending on specified file ending.
( Default: .aagx )
| filename | - the name of the .agx file that will be created from the current simulation state. |
| bool MOMENTUM_NAMESPACE::Simulation::writeGranularFile | ( | const std::string & | filename, |
| const GranularBodyVector & | granularBodies, | ||
| const RigidBodyVector & | rigidBodies | ||
| ) | const |
Write granular and Non-Spherical-Shapes(NSS) bodies that intersect with a specified geometry to an .agx file.
| filename | - The specified file in .agx format that the specified granular data should be stored to. |
| granularBodies | - A vector containing the granular bodies will be stored in in the specified file. |
| rigidBodies | - A vector containing the Non-Spherical-Shapes rigid bodies will be stored in in the specified file. |
|
friend |
Return a pointer to the simulation object which can be used to access all joints, bodies, contacts etc.