28 template <agx::UInt8 ShapeType>
29 class GroupFooCollider :
public ShapeCollider
32 GroupFooCollider() : ShapeCollider(agxCollide::Shape::GROUP, ShapeType) {}
33 virtual ~GroupFooCollider() {}
35 virtual void _calculateContacts(
36 agx::Physics::Geometry::ShapeInstance shape1, agx::Physics::Geometry::ShapeInstance shape2,
41 const agx::Vec3& ,
const agx::Vec3& linearVelocity2,
43 const agx::Vec3& angularVelocity1,
const agx::Vec3& angularVelocity2,
46 agx::Physics::Geometry::ShapeGroupInstance group = shape1;
51 for (
size_t i = 0; i < childShapes.
size(); ++i)
53 agx::Physics::Geometry::ShapeInstance childShape = childShapes[i];
55 ShapeCollider *collider = ColliderTable::getCollider(childShape.type(), shape2.type());
60 #if SHAPE_COLLIDER_VELOCITIES 61 agx::Vec3 childLinearVelocity = (angularVelocity1 ^ localTransform.getTranslate()) + linearVelocity1;
69 collider->calculateContacts(
71 childShape.transform(), transform2,
72 childLinearVelocity, linearVelocity2,
73 angularVelocity1, angularVelocity2,
This namespace consists of a set of classes for handling geometric intersection tests including boole...
#define SHAPE_COLLIDER_VELOCITIES
#define DOXYGEN_END_INTERNAL_BLOCK()
agx::VectorPOD< LocalContactPoint > LocalContactPointVector
#define DOXYGEN_START_INTERNAL_BLOCK()