|
@@ -28,6 +28,7 @@ class TwoBodyConstraintSettings;
|
|
|
class TwoBodyConstraint;
|
|
|
class BroadPhaseLayerFilter;
|
|
|
class AABox;
|
|
|
+class CollisionGroup;
|
|
|
|
|
|
/// Class that provides operations on bodies using a body ID. Note that if you need to do multiple operations on a single body, it is more efficient to lock the body once and combine the operations.
|
|
|
/// All quantities are in world space unless otherwise specified.
|
|
@@ -273,6 +274,12 @@ public:
|
|
|
bool GetUseManifoldReduction(const BodyID &inBodyID) const;
|
|
|
///@}
|
|
|
|
|
|
+ ///@name Collision group
|
|
|
+ ///@{
|
|
|
+ void SetCollisionGroup(const BodyID &inBodyID, const CollisionGroup &inCollisionGroup);
|
|
|
+ const CollisionGroup & GetCollisionGroup(const BodyID &inBodyID) const;
|
|
|
+ ///@}
|
|
|
+
|
|
|
/// Get transform and shape for this body, used to perform collision detection
|
|
|
TransformedShape GetTransformedShape(const BodyID &inBodyID) const;
|
|
|
|