17 #ifndef AGXCONTROL_SENSOROPERATIONS_H
18 #define AGXCONTROL_SENSOROPERATIONS_H
59 agx::Physics::ParticleGeometryContactInstance contact,
60 agx::Physics::ParticleData& particleData,
61 agx::Physics::GeometryData& ,
86 agx::Physics::ParticleGeometryContactInstance ,
87 agx::Physics::ParticleData& ,
88 agx::Physics::GeometryData& ,
122 agx::Physics::ParticleGeometryContactInstance contact,
123 agx::Physics::ParticleData& particleData,
124 agx::Physics::GeometryData& geometryData,
152 void createFileName(
const agx::Name& filePath);
159 agx::Physics::ParticleGeometryContactInstance contact,
160 agx::Physics::ParticleData& particleData,
161 agx::Physics::GeometryData& ,
198 agx::Physics::ParticleGeometryContactInstance contact,
199 agx::Physics::ParticleData& particleData,
200 agx::Physics::GeometryData& geometryData,
250 agx::Physics::ParticleGeometryContactInstance contact,
251 agx::Physics::ParticleData& particleData,
252 agx::Physics::GeometryData& geometryData,
278 agx::Physics::ParticleGeometryContactInstance contact,
279 agx::Physics::ParticleData& particleData,
280 agx::Physics::GeometryData& geometryData,
288 void setVelocity(
const agx::Vec3& velocity);
291 void setAngularVelocity(
const agx::Vec3& angularVelocity);
292 const agx::Vec3& getAngularVelocity()
const;
340 agx::Physics::ParticleGeometryContactInstance contact,
341 agx::Physics::ParticleData& particleData,
342 agx::Physics::GeometryData& geometryData,
377 void addNotification(
EventSensor * sensor)
override;
386 agx::Physics::ParticleGeometryContactInstance contact,
387 agx::Physics::ParticleData& particleData,
388 agx::Physics::GeometryData& ,
void AGXPHYSICS_EXPORT init()
Initialize agx.
This operation can be used to know when a sensor has been activated by a contact. ...
agx::UInt32 m_samplingStride
agx::Physics::ParticlePtrVector getParticlesInContact() const
This operations removes all the particles in the contact supplied by the sensor.
agx::Name m_completeFilePath
agx::HashTable< agx::Index, agx::Bool > m_handledParticleIds
agx::Vec3 m_angularVelocity
std::ofstream m_outStream
bool m_onlyRemoveEmittedBodies
This operation applies a "kinematic state" to particles that collide with the sensor.
const agx::Vec3 & getAngularVelocity() const
const agx::Vec3 & getVelocity() const
agx::Name getMaterialName()
#define AGXPHYSICS_EXPORT
agx::FrameRef m_sourceOffsetFrame
agx::Name & getFilePath()
agx::Physics::ParticlePtrVector m_particlesInContact
virtual void triggerEvent(const agx::TimeStamp &, agxSDK::Simulation *, agxCollide::GeometryContact *, agxControl::EventSensor *) override
Triggers the sensor event by passing contact information.
Representation of a name string.
void setIsExecuted(bool executed)
This is a sensor class that can be attached to an geometry in the simulation.
This sensor operation class sets a speed to the object that collides with the sensor, in both linear and angular direction.
bool m_shouldCloneTeleport
This sensor operation class store particle id's of particles that are in contact with the sensor...
void setMaterialName(const agx::String &material)
agx::UInt32 m_framesSinceLastSampling
agxData::EntityStorageRef m_particleTeleportStorage
ParticleTeleportQueue m_particleSpawnQueue
agx::FrameRef m_targetOffsetFrame
This sensor operation can teleport contacting particles to a target sensor geometry with arbitrary ti...
void setAngularVelocity(const agx::Vec3 &angularVelocity)
ParticleFreezeMode
Enum describing what mode the operation should be in. If it should freeze or unfreeze particles...
agx::FrameRef m_localFrame
agxControl::EventSensor * m_targetSensor
This operation dumps particle contact information to a file.
std::pair< agx::TimeStamp, agx::Index > TimeParticleIdPair
The object defining a frame of reference and providing transformations operations.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
This operation removes the rigid body given by the geometry in the contact supplied by the sensor...
agx::Real m_teleportTimeDilation
void setEnableMixColors(bool mixColors)
void setVelocity(const agx::Vec3 &velocity)
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.
A specific type of sensor event that triggers a change in the simulation when activated by a contact...
agx::List< TimeParticleIdPair > ParticleTeleportQueue
bool getEnableMixColors()
Inheritance with partial specialization due to bug with ref_ptr containers.
agx::HashSet< agx::UInt32 > m_previousContactingParticleIds
This operation changes the color of the particles given in the contact.