IRockyContactDataRecorder is an interface to the internal entity that records relevant collision data during the contact calculations. The data is stored in contact scalars in order to make it available to collision statistics modules for later processing. The methods in IRockyContactDataRecorder allows a custom module to enable the physical magnitudes that must be recorded and to retrieve the indices of the contact scalars in which they will be stored.
Members
Public functions
Function enable_contact_scalar
- scalar: An enum key indicating the physical magnitude that must be recorded. The currently available magnitudes are:
csDuration: The duration of a collision.
csImpactVelocityNormal: The normal component of the impact velocity, i.e. the contact relative velocity at the moment a collision starts.
csImpactVelocityTangential: The tangential component of the impact velocity, i.e. the contact relative velocity at the moment a collision starts.
csWorkDissipation: The energy dissipated during an entire collision.
csWorkImpact: The work made by the normal contact force during the loading phase of a collision.
csWorkShear: The work made by the tangential contact force during an entire collision.
csEnergyTransfer: The energy transferred to a particle by a moving boundary during a collision at a particle-to-boundary contact.
csImpulseNormal: The impulse of the normal contact force during an entire collision.
csImpulseTangential: The impulse of the tangential contact force during an entire collision.
csImpulseX: The impulse of the x-component of the contact force.
csImpulseY: The impulse of the y-component of the contact force.
csImpulseZ: The impulse of the z-component of the contact force.
csSlindingDistance: The sliding distance during an entire collision. - scope: An enum key indicating if the collision data will be recorded at particle-to-particle contacts, particle-to-geometry-triangle contacts or both. The valid keys are:
rsParticleParticleRecord data only at particle-to-particle contacts.
rsParticleTriangleRecord data only at particle-to-geometry-triangle contacts.
rsBothRecord data at both particle-to-particle and particle-to-geometry-triangle contacts.
- ContactScalar scalar
- RecordingScope scope
Function get_contact_scalar_index
- scalar: See description on
enable_contact_scalar - scope: An enum key indicating the index of which contact type will be returned. The valid keys are:
rsParticleParticleReturn the index of a particle contact scalar.
rsParticleTriangleReturn the index of a triangle contact scalar.
- ContactScalar scalar
- RecordingScope scope