dart
Public Attributes | List of all members
dart::collision::CollisionGroup::ObjectInfo Struct Referencefinal

Information on a collision object belonging to this group. More...

#include <CollisionGroup.hpp>

Collaboration diagram for dart::collision::CollisionGroup::ObjectInfo:
Collaboration graph
[legend]

Public Attributes

const dynamics::ShapeFramemFrame
 The ShapeFrame for this object.
 
CollisionObjectPtr mObject
 The CollisionObject that was generated by the CollisionDetector.
 
std::size_t mLastKnownShapeID
 The ID of that last known shape that was held by the shape frame.
 
std::size_t mLastKnownVersion
 The last known version of the last known shape that was held by the shape frame.
 
std::unordered_set< const void * > mSources
 The set of all sources that indicate that this object should be in this group. More...
 

Detailed Description

Information on a collision object belonging to this group.

This info enables us to keep track of when a ShapeFrame has changed and therefore when the object needs to be updated. It also remembers what sources instructed this object to belong to this group.

Member Data Documentation

◆ mSources

std::unordered_set<const void*> dart::collision::CollisionGroup::ObjectInfo::mSources

The set of all sources that indicate that this object should be in this group.

In the current implementation, this may consist of: user (nullptr), Skeleton subscription, and/or BodyNode subscription.

When all sources are cleared out (via unsubscribing), this object will be removed from this group.


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