GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::physics::CollisionEvent< N > Struct Template Reference

Collision start event between two objects in a Simulation. More...

#include <GREM/physics/collision.hpp>

Public Attributes

Pair< EntityID > objectIDs
 Ordered pair of handles to the objects involved in the collision.
Pair< Transformation< N > > objectTransformations
 Ordered pair of transformations of the objects in world space at the time of the collision.
Pair< Length< N > > localOffsets
 Ordered pair of untransformed offsets from the objects' centers of mass to their respective surfaces where the collision occured in shape-local space.
Pair< LinearVelocity< N > > objectLinearVelocities
 Ordered pair of linear velocities of the objects' centers of mass at the time of the collision.
Pair< AngularVelocity< N > > objectAngularVelocities
 Ordered pair of angular velocities of the objects at the time of the collision.
Direction< N > normal
 Unit vector perpendicular to the separating plane of the collision, pointing away from the first object's surface and towards the second object's surface.

Detailed Description

template<size_t N>
struct grem::physics::CollisionEvent< N >

Collision start event between two objects in a Simulation.

Template Parameters
Nnumber of dimensions of the world space (must be 2 or 3).

Member Data Documentation

◆ objectIDs

template<size_t N>
Pair<EntityID> grem::physics::CollisionEvent< N >::objectIDs

Ordered pair of handles to the objects involved in the collision.

◆ objectTransformations

template<size_t N>
Pair<Transformation<N> > grem::physics::CollisionEvent< N >::objectTransformations

Ordered pair of transformations of the objects in world space at the time of the collision.

◆ localOffsets

template<size_t N>
Pair<Length<N> > grem::physics::CollisionEvent< N >::localOffsets

Ordered pair of untransformed offsets from the objects' centers of mass to their respective surfaces where the collision occured in shape-local space.

◆ objectLinearVelocities

template<size_t N>
Pair<LinearVelocity<N> > grem::physics::CollisionEvent< N >::objectLinearVelocities

Ordered pair of linear velocities of the objects' centers of mass at the time of the collision.

◆ objectAngularVelocities

template<size_t N>
Pair<AngularVelocity<N> > grem::physics::CollisionEvent< N >::objectAngularVelocities

Ordered pair of angular velocities of the objects at the time of the collision.

◆ normal

template<size_t N>
Direction<N> grem::physics::CollisionEvent< N >::normal

Unit vector perpendicular to the separating plane of the collision, pointing away from the first object's surface and towards the second object's surface.


The documentation for this struct was generated from the following file: