 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
17 #ifndef AGXCONTROL_SENSOROPERATIONS_H
18 #define AGXCONTROL_SENSOROPERATIONS_H
60 agx::Physics::ParticleGeometryContactInstance contact,
61 agx::Physics::ParticleData& particleData,
62 agx::Physics::GeometryData& ,
87 agx::Physics::ParticleGeometryContactInstance ,
88 agx::Physics::ParticleData& ,
89 agx::Physics::GeometryData& ,
123 agx::Physics::ParticleGeometryContactInstance contact,
124 agx::Physics::ParticleData& particleData,
125 agx::Physics::GeometryData& geometryData,
153 void createFileName(
const agx::Name& filePath);
160 agx::Physics::ParticleGeometryContactInstance contact,
161 agx::Physics::ParticleData& particleData,
162 agx::Physics::GeometryData& ,
199 agx::Physics::ParticleGeometryContactInstance contact,
200 agx::Physics::ParticleData& particleData,
201 agx::Physics::GeometryData& geometryData,
256 agx::Physics::ParticleGeometryContactInstance contact,
257 agx::Physics::ParticleData& particleData,
258 agx::Physics::GeometryData& geometryData,
312 bool colorOnSleep =
false,
317 agx::Physics::ParticleGeometryContactInstance contact,
318 agx::Physics::ParticleData& particleData,
319 agx::Physics::GeometryData& geometryData,
347 agx::Physics::ParticleGeometryContactInstance contact,
348 agx::Physics::ParticleData& particleData,
349 agx::Physics::GeometryData& geometryData,
357 void setVelocity(
const agx::Vec3& velocity);
360 void setAngularVelocity(
const agx::Vec3& angularVelocity);
361 const agx::Vec3& getAngularVelocity()
const;
409 agx::Physics::ParticleGeometryContactInstance contact,
410 agx::Physics::ParticleData& particleData,
411 agx::Physics::GeometryData& geometryData,
447 bool cloneTeleportation =
false,
451 void addNotification(
EventSensor * sensor)
override;
460 agx::Physics::ParticleGeometryContactInstance contact,
461 agx::Physics::ParticleData& particleData,
462 agx::Physics::GeometryData& ,
bool m_onlyRemoveEmittedBodies
const agx::Vec3 & getAngularVelocity() const
void setMaterialName(const agx::String &material)
agx::Vec3 m_angularVelocity
agx::Name m_completeFilePath
std::ofstream m_outStream
This operation removes the rigid body given by the geometry in the contact supplied by the sensor.
This namespace contains general operation and action classes which can be used to control a agxSDK::S...
agx::Real m_teleportTimeDilation
agx::Name & getFilePath()
agx::UInt32 m_samplingStride
A specific type of sensor event that triggers a change in the simulation when activated by a contact.
ParticleFreezeMode
Enum describing what mode the operation should be in. If it should freeze or unfreeze particles.
const agx::Vec3 & getVelocity() const
This operation dumps particle contact information to a file.
agx::List< TimeParticleIdPair > ParticleTeleportQueue
agx::HashTable< agx::Index, agx::Bool > m_handledParticleIds
virtual void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
This sensor operation class sets a speed to the object that collides with the sensor,...
A class holding 4 dimensional vectors and providing basic arithmetic.
agx::Physics::ParticlePtrVector m_particlesInContact
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
void setIsExecuted(bool executed)
This is a sensor class that can be attached to an geometry in the simulation.
This sensor operation can teleport contacting particles to a target sensor geometry with arbitrary ti...
agx::UInt32 m_framesSinceLastSampling
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
void setAngularVelocity(const agx::Vec3 &angularVelocity)
agx::FrameRef m_targetOffsetFrame
This operation can be used to know when a sensor has been activated by a contact.
Inheritance with partial specialization due to bug with ref_ptr containers.
agx::Real m_sleepSpeedThreshold
Representation of a name string.
This operations removes all the particles in the contact supplied by the sensor.
bool m_shouldCloneTeleport
This operation resets accumulated impact energy to a set value for particles inside the sensor if the...
agx::FrameRef m_localFrame
agxControl::EventSensor * m_targetSensor
agx::FrameRef m_sourceOffsetFrame
This sensor operation class store particle id's of particles that are in contact with the sensor.
ParticleTeleportQueue m_particleSpawnQueue
agxData::EntityStorageRef m_particleTeleportStorage
This operation applies a "kinematic state" to particles that collide with the sensor.
virtual void triggerParticleEvent(const agx::TimeStamp &, agxSDK::Simulation *, agx::Physics::ParticleGeometryContactInstance, agx::Physics::ParticleData &, agx::Physics::GeometryData &, agxControl::EventSensor *) override
Triggers the sensor event by passing particle contact information.
agx::Name getMaterialName()
agx::HashSet< agx::UInt32 > m_previousContactingParticleIds
void setVelocity(const agx::Vec3 &velocity)
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API.
agx::Physics::ParticlePtrVector getParticlesInContact() const
bool getEnableMixColors()
This operation changes the color of the particles given in the contact.
static agxRender::Color Yellow()
This operation applies a kinematic "sleep state" to particles inside the sensor that are under a spec...
std::pair< agx::TimeStamp, agx::Index > TimeParticleIdPair
void setEnableMixColors(bool mixColors)
The object defining a frame of reference and providing transformations operations.