#define JPH_NAMESPACE_END
Definition Core.h:240
#define JPH_NAMESPACE_BEGIN
Definition Core.h:234
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition Memory.h:29
std::vector< T, STLAllocator< T > > Array
Definition STLAllocator.h:81
Axis aligned box.
Definition AABox.h:16
ID of a body. This is a way of reasoning about bodies in a multithreaded simulation while avoiding ra...
Definition BodyID.h:13
Test BroadPhase implementation that does not do anything to speed up the operations....
Definition BroadPhaseBruteForce.h:14
virtual void CastAABoxNoLock(const AABoxCast &inBox, CastShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter) const override
Same as BroadPhaseQuery::CastAABox but can be implemented in a way to take no broad phase locks.
Definition BroadPhaseBruteForce.cpp:223
virtual void CollideSphere(Vec3Arg inCenter, float inRadius, CollideShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter) const override
Get bodies intersecting with a sphere and any hits to ioCollector.
Definition BroadPhaseBruteForce.cpp:146
virtual void FindCollidingPairs(BodyID *ioActiveBodies, int inNumActiveBodies, float inSpeculativeContactDistance, const ObjectVsBroadPhaseLayerFilter &inObjectVsBroadPhaseLayerFilter, const ObjectLayerPairFilter &inObjectLayerPairFilter, BodyPairCollector &ioPairCollector) const override
Definition BroadPhaseBruteForce.cpp:262
virtual void RemoveBodies(BodyID *ioBodies, int inNumber) override
Definition BroadPhaseBruteForce.cpp:49
virtual void NotifyBodiesLayerChanged(BodyID *ioBodies, int inNumber) override
Call whenever the layer (and optionally the aabb as well) of a body changes (can change order of ioBo...
Definition BroadPhaseBruteForce.cpp:83
virtual void CastAABox(const AABoxCast &inBox, CastShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter) const override
Cast a box and add any hits to ioCollector.
Definition BroadPhaseBruteForce.cpp:257
virtual void NotifyBodiesAABBChanged(BodyID *ioBodies, int inNumber, bool inTakeLock) override
Definition BroadPhaseBruteForce.cpp:78
virtual JPH_OVERRIDE_NEW_DELETE void AddBodiesFinalize(BodyID *ioBodies, int inNumber, AddState inAddState) override
Definition BroadPhaseBruteForce.cpp:18
virtual void CollideOrientedBox(const OrientedBox &inBox, CollideShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter) const override
Get bodies intersecting with an oriented box and any hits to ioCollector.
Definition BroadPhaseBruteForce.cpp:198
virtual void CollideAABox(const AABox &inBox, CollideShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter) const override
Get bodies intersecting with inBox and any hits to ioCollector.
Definition BroadPhaseBruteForce.cpp:121
virtual void CastRay(const RayCast &inRay, RayCastBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter) const override
Cast a ray and add any hits to ioCollector.
Definition BroadPhaseBruteForce.cpp:88
virtual void CollidePoint(Vec3Arg inPoint, CollideShapeBodyCollector &ioCollector, const BroadPhaseLayerFilter &inBroadPhaseLayerFilter, const ObjectLayerFilter &inObjectLayerFilter) const override
Get bodies intersecting with a point and any hits to ioCollector.
Definition BroadPhaseBruteForce.cpp:173
Used to do coarse collision detection operations to quickly prune out bodies that will not collide.
Definition BroadPhase.h:26
void * AddState
Handle used during adding bodies to the broadphase.
Definition BroadPhase.h:57
Filter class for broadphase layers.
Definition BroadPhaseLayer.h:89
Virtual interface that allows collecting multiple collision results.
Definition CollisionCollector.h:45
Filter class for object layers.
Definition ObjectLayer.h:28
Filter class to test if two objects can collide based on their object layer. Used while finding colli...
Definition ObjectLayer.h:50
Class to test if an object can collide with a broadphase layer. Used while finding collision pairs.
Definition BroadPhaseLayer.h:75
Oriented box.
Definition OrientedBox.h:18
Structure that holds AABox moving linearly through 3d space.
Definition AABoxCast.h:13