Interface ConstBroadPhaseQuery
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
BroadPhase,BroadPhaseBruteForce,BroadPhaseQuadTree,BroadPhaseQuery
Read-only access to a
BroadPhaseQuery. (native type:
const BroadPhaseQuery)-
Method Summary
Modifier and TypeMethodDescriptionvoidcastAaBox(AaBoxCast boxCast, CastShapeBodyCollector collector) Cast a box along a line segment and collect the resulting hits.voidcastAaBox(AaBoxCast boxCast, CastShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter) Cast a box along a line segment and collect the resulting hits.voidcastAaBox(AaBoxCast boxCast, CastShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Cast a box along a line segment and collect the resulting hits.voidcastRay(RayCast raycast, RayCastBodyCollector collector) Cast a ray and collect the resulting hits.voidcastRay(RayCast raycast, RayCastBodyCollector collector, BroadPhaseLayerFilter bplFilter) Cast a ray and collect the resulting hits.voidcastRay(RayCast raycast, RayCastBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Cast a ray and collect the resulting hits.voidcollideAaBox(ConstAaBox box, CollideShapeBodyCollector collector) Collect bodies whose bounding boxes overlap with the specified test box.voidcollideAaBox(ConstAaBox box, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter) Collect bodies whose bounding boxes overlap with the specified test box.voidcollideAaBox(ConstAaBox box, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect bodies whose bounding boxes overlap with the specified test box.voidcollideOrientedBox(ConstOrientedBox box, CollideShapeBodyCollector collector) Collect bodies whose bounding boxes intersect the specified oriented box.voidcollideOrientedBox(ConstOrientedBox box, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter) Collect bodies whose bounding boxes intersect the specified oriented box.voidcollideOrientedBox(ConstOrientedBox box, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect bodies whose bounding boxes intersect the specified oriented box.voidcollidePoint(Vec3Arg point, CollideShapeBodyCollector collector) Collect bodies whose bounding boxes intersect the specified point.voidcollidePoint(Vec3Arg point, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter) Collect bodies whose bounding boxes intersect the specified point.voidcollidePoint(Vec3Arg point, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect bodies whose bounding boxes intersect the specified point.voidcollideSphere(Vec3Arg center, float radius, CollideShapeBodyCollector collector) Collect bodies whose bounding boxes intersect the specified test sphere.voidcollideSphere(Vec3Arg center, float radius, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter) Collect bodies whose bounding boxes intersect the specified test sphere.voidcollideSphere(Vec3Arg center, float radius, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect bodies whose bounding boxes intersect the specified test sphere.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
castAaBox
Cast a box along a line segment and collect the resulting hits.- Parameters:
boxCast- the test box and route (notnull, unaffected)collector- the hit collector to use (notnull)
-
castAaBox
void castAaBox(AaBoxCast boxCast, CastShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter) Cast a box along a line segment and collect the resulting hits.- Parameters:
boxCast- the test box and route (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
castAaBox
void castAaBox(AaBoxCast boxCast, CastShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Cast a box along a line segment and collect the resulting hits.- Parameters:
boxCast- the test box and route (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)olFilter- the object-layer filter to apply (notnull, unaffected)
-
castRay
Cast a ray and collect the resulting hits.- Parameters:
raycast- the test ray (notnull, unaffected)collector- the hit collector to use (notnull)
-
castRay
Cast a ray and collect the resulting hits.- Parameters:
raycast- the test ray (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
castRay
void castRay(RayCast raycast, RayCastBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Cast a ray and collect the resulting hits.- Parameters:
raycast- the test ray (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)olFilter- the object-layer filter to apply (notnull, unaffected)
-
collideAaBox
Collect bodies whose bounding boxes overlap with the specified test box.- Parameters:
box- the test box (notnull, unaffected)collector- the hit collector to use (notnull)
-
collideAaBox
void collideAaBox(ConstAaBox box, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter) Collect bodies whose bounding boxes overlap with the specified test box.- Parameters:
box- the test box (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
collideAaBox
void collideAaBox(ConstAaBox box, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect bodies whose bounding boxes overlap with the specified test box.- Parameters:
box- the test box (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)olFilter- the object-layer filter to apply (notnull, unaffected)
-
collideOrientedBox
Collect bodies whose bounding boxes intersect the specified oriented box.- Parameters:
box- the box to test (notnull, unaffected)collector- the hit collector to use (notnull)
-
collideOrientedBox
void collideOrientedBox(ConstOrientedBox box, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter) Collect bodies whose bounding boxes intersect the specified oriented box.- Parameters:
box- the box to test (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
collideOrientedBox
void collideOrientedBox(ConstOrientedBox box, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect bodies whose bounding boxes intersect the specified oriented box.- Parameters:
box- the box to test (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)olFilter- the object-layer filter to apply (notnull, unaffected)
-
collidePoint
Collect bodies whose bounding boxes intersect the specified point.- Parameters:
point- the location to test (notnull, unaffected)collector- the hit collector to use (notnull)
-
collidePoint
void collidePoint(Vec3Arg point, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter) Collect bodies whose bounding boxes intersect the specified point.- Parameters:
point- the location to test (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
collidePoint
void collidePoint(Vec3Arg point, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect bodies whose bounding boxes intersect the specified point.- Parameters:
point- the location to test (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)olFilter- the object-layer filter to apply (notnull, unaffected)
-
collideSphere
Collect bodies whose bounding boxes intersect the specified test sphere.- Parameters:
center- the center of the test sphere (notnull, unaffected)radius- the radius of the test spherecollector- the hit collector to use (notnull)
-
collideSphere
void collideSphere(Vec3Arg center, float radius, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter) Collect bodies whose bounding boxes intersect the specified test sphere.- Parameters:
center- the center of the test sphere (notnull, unaffected)radius- the radius of the test spherecollector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
collideSphere
void collideSphere(Vec3Arg center, float radius, CollideShapeBodyCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect bodies whose bounding boxes intersect the specified test sphere.- Parameters:
center- the center of the test sphere (notnull, unaffected)radius- the radius of the test spherecollector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)olFilter- the object-layer filter to apply (notnull, unaffected)
-