17 #ifndef AGXCOLLIDE_GROUP_FOO_COLLIDER_H
18 #define AGXCOLLIDE_GROUP_FOO_COLLIDER_H
26 template <agx::UInt8 ShapeType>
34 agx::Physics::Geometry::ShapeInstance shape1, agx::Physics::Geometry::ShapeInstance shape2,
44 agx::Physics::Geometry::ShapeGroupInstance group = shape1;
49 for (
size_t i = 0; i < childShapes.
size(); ++i)
51 agx::Physics::Geometry::ShapeInstance childShape = childShapes[i];
58 #if SHAPE_COLLIDER_VELOCITIES
59 agx::Vec3 childLinearVelocity = (angularVelocity1 ^ localTransform.getTranslate()) + linearVelocity1;
67 collider->calculateContacts(
69 childShape.transform(), transform2,
70 childLinearVelocity, linearVelocity2,
71 angularVelocity1, angularVelocity2,
#define SHAPE_COLLIDER_VELOCITIES
static ShapeCollider * getCollider(const Shape *a, const Shape *b)
Get a shape collider for testing two shapes against each other.
virtual ~GroupFooCollider()
virtual void _calculateContacts(agx::Physics::Geometry::ShapeInstance shape1, agx::Physics::Geometry::ShapeInstance shape2, const agx::AffineMatrix4x4 &, const agx::AffineMatrix4x4 &transform2, const agx::Vec3 &, const agx::Vec3 &linearVelocity2, const agx::Vec3 &angularVelocity1, const agx::Vec3 &angularVelocity2, bool, LocalContactPointVector &result) override
This namespace consists of a set of classes for handling geometric intersection tests including boole...