java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.NonCopyable
com.github.stephengold.joltjni.NarrowPhaseQuery
- All Implemented Interfaces:
ConstJoltPhysicsObject,ConstNarrowPhaseQuery,AutoCloseable,Comparable<JoltPhysicsObject>
Interface for precise collision detection against the bodies in a
PhysicsSystem.-
Method Summary
Modifier and TypeMethodDescriptionbooleancastRay(RRayCast raycast, RayCastResult hitResult) Cast a ray and obtain the nearest hit, if any.booleancastRay(RRayCast raycast, RayCastResult hitResult, BroadPhaseLayerFilter bplFilter) Cast a ray and obtain the nearest hit, if any.booleancastRay(RRayCast raycast, RayCastResult hitResult, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Cast a ray and obtain the nearest hit, if any.booleancastRay(RRayCast raycast, RayCastResult hitResult, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Cast a ray and obtain the nearest hit, if any.voidcastRay(RRayCast raycast, ConstRayCastSettings settings, CastRayCollector collector) Cast a ray and collect the resulting hits.voidcastRay(RRayCast raycast, ConstRayCastSettings settings, CastRayCollector collector, BroadPhaseLayerFilter bplFilter) Cast a ray and collect the resulting hits.voidcastRay(RRayCast raycast, ConstRayCastSettings settings, CastRayCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Cast a ray and collect the resulting hits.voidcastRay(RRayCast raycast, ConstRayCastSettings settings, CastRayCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Cast a ray and collect the resulting hits.voidcastRay(RRayCast raycast, ConstRayCastSettings settings, CastRayCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter) Cast a ray and collect the resulting hits.voidcastShape(RShapeCast shapeCast, ConstShapeCastSettings settings, RVec3Arg base, CastShapeCollector collector) Cast a shape and collect the resulting hits.voidcastShape(RShapeCast shapeCast, ConstShapeCastSettings settings, RVec3Arg base, CastShapeCollector collector, BroadPhaseLayerFilter bplFilter) Cast a shape and collect the resulting hits.voidcastShape(RShapeCast shapeCast, ConstShapeCastSettings settings, RVec3Arg base, CastShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Cast a shape and collect the resulting hits.voidcastShape(RShapeCast shapeCast, ConstShapeCastSettings settings, RVec3Arg base, CastShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Cast a shape and collect the resulting hits.voidcastShape(RShapeCast shapeCast, ConstShapeCastSettings settings, RVec3Arg base, CastShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter) Cast a shape and collect the resulting hits.voidcollectTransformedShapes(ConstAaBox box, TransformedShapeCollector collector) Collect leaf shapes that lie within the specified bounds.voidcollectTransformedShapes(ConstAaBox box, TransformedShapeCollector collector, BroadPhaseLayerFilter bplFilter) Collect leaf shapes that lie within the specified bounds.voidcollectTransformedShapes(ConstAaBox box, TransformedShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect leaf shapes that lie within the specified bounds.voidcollectTransformedShapes(ConstAaBox box, TransformedShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Collect leaf shapes that lie within the specified bounds.voidcollectTransformedShapes(ConstAaBox box, TransformedShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter) Collect leaf shapes that lie within the specified bounds.voidcollidePoint(RVec3Arg point, CollidePointCollector collector) Collect collisions with the specified point.voidcollidePoint(RVec3Arg point, CollidePointCollector collector, BroadPhaseLayerFilter bplFilter) Collect collisions with the specified point.voidcollidePoint(RVec3Arg point, CollidePointCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect collisions with the specified point.voidcollidePoint(RVec3Arg point, CollidePointCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Collect collisions with the specified point.voidcollidePoint(RVec3Arg point, CollidePointCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter) Collect collisions with the specified point.voidcollideShape(ConstShape shape, Vec3Arg shapeScale, RMat44Arg comTransform, ConstCollideShapeSettings settings, RVec3Arg base, CollideShapeCollector collector) Collect collisions with the specified shape.voidcollideShape(ConstShape shape, Vec3Arg shapeScale, RMat44Arg comTransform, ConstCollideShapeSettings settings, RVec3Arg base, CollideShapeCollector collector, BroadPhaseLayerFilter bplFilter) Collect collisions with the specified shape.voidcollideShape(ConstShape shape, Vec3Arg shapeScale, RMat44Arg comTransform, ConstCollideShapeSettings settings, RVec3Arg base, CollideShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect collisions with the specified shape.voidcollideShape(ConstShape shape, Vec3Arg shapeScale, RMat44Arg comTransform, ConstCollideShapeSettings settings, RVec3Arg base, CollideShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Collect collisions with the specified shape.voidcollideShape(ConstShape shape, Vec3Arg shapeScale, RMat44Arg comTransform, ConstCollideShapeSettings settings, RVec3Arg base, CollideShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter) Collect collisions with the specified shape.Access the underlyingPhysicsSystem.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, targetVaOrZero, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa, targetVaOrZero
-
Method Details
-
getSystem
Access the underlyingPhysicsSystem.- Returns:
- the pre-existing instance
-
castRay
Cast a ray and obtain the nearest hit, if any.- Specified by:
castRayin interfaceConstNarrowPhaseQuery- Parameters:
raycast- the desired ray (notnull, unaffected)hitResult- storage for information about the hit, if any (notnull, may be modified)- Returns:
trueif a hit was found, otherwisefalse
-
castRay
Cast a ray and obtain the nearest hit, if any.- Specified by:
castRayin interfaceConstNarrowPhaseQuery- Parameters:
raycast- the desired ray (notnull, unaffected)hitResult- storage for information about the hit, if any (notnull, may be modified)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)- Returns:
trueif a hit was found, otherwisefalse
-
castRay
public boolean castRay(RRayCast raycast, RayCastResult hitResult, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Cast a ray and obtain the nearest hit, if any.- Specified by:
castRayin interfaceConstNarrowPhaseQuery- Parameters:
raycast- the desired ray (notnull, unaffected)hitResult- storage for information about the hit, if any (notnull, may be modified)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)olFilter- the object-layer filter to apply (notnull, unaffected)- Returns:
trueif a hit was found, otherwisefalse
-
castRay
public boolean castRay(RRayCast raycast, RayCastResult hitResult, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Cast a ray and obtain the nearest hit, if any.- Specified by:
castRayin interfaceConstNarrowPhaseQuery- Parameters:
raycast- the desired ray (notnull, unaffected)hitResult- storage for information about the hit, if any (notnull, may be modified)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)olFilter- the object-layer filter to apply (notnull, unaffected)bodyFilter- the body filter to apply (notnull, unaffected)- Returns:
trueif a hit was found, otherwisefalse
-
castRay
Cast a ray and collect the resulting hits.- Specified by:
castRayin interfaceConstNarrowPhaseQuery- Parameters:
raycast- the desired ray (notnull, unaffected)settings- the raycast configuration options to use (notnull, unaffected)collector- the hit collector to use (notnull)
-
castRay
public void castRay(RRayCast raycast, ConstRayCastSettings settings, CastRayCollector collector, BroadPhaseLayerFilter bplFilter) Cast a ray and collect the resulting hits.- Specified by:
castRayin interfaceConstNarrowPhaseQuery- Parameters:
raycast- the desired ray (notnull, unaffected)settings- the raycast configuration options to use (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
castRay
public void castRay(RRayCast raycast, ConstRayCastSettings settings, CastRayCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Cast a ray and collect the resulting hits.- Specified by:
castRayin interfaceConstNarrowPhaseQuery- Parameters:
raycast- the desired ray (notnull, unaffected)settings- the raycast configuration options to use (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
public void castRay(RRayCast raycast, ConstRayCastSettings settings, CastRayCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Cast a ray and collect the resulting hits.- Specified by:
castRayin interfaceConstNarrowPhaseQuery- Parameters:
raycast- the desired ray (notnull, unaffected)settings- the raycast configuration options to use (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)bodyFilter- the body filter to apply (notnull, unaffected)
-
castRay
public void castRay(RRayCast raycast, ConstRayCastSettings settings, CastRayCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter) Cast a ray and collect the resulting hits.- Specified by:
castRayin interfaceConstNarrowPhaseQuery- Parameters:
raycast- the desired ray (notnull, unaffected)settings- the raycast configuration options to use (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)bodyFilter- the body filter to apply (notnull, unaffected)shapeFilter- the shape filter to apply (notnull, unaffected)
-
castShape
public void castShape(RShapeCast shapeCast, ConstShapeCastSettings settings, RVec3Arg base, CastShapeCollector collector) Cast a shape and collect the resulting hits.- Specified by:
castShapein interfaceConstNarrowPhaseQuery- Parameters:
shapeCast- the desired shape cast (notnull, unaffected)settings- the shape-cast configuration options to use (notnull, unaffected)base- the base location for reporting hits (notnull, unaffected, (0,0,0)→world coordinates)collector- the hit collector to use (notnull)
-
castShape
public void castShape(RShapeCast shapeCast, ConstShapeCastSettings settings, RVec3Arg base, CastShapeCollector collector, BroadPhaseLayerFilter bplFilter) Cast a shape and collect the resulting hits.- Specified by:
castShapein interfaceConstNarrowPhaseQuery- Parameters:
shapeCast- the desired shape cast (notnull, unaffected)settings- the shape-cast configuration options to use (notnull, unaffected)base- the base location for reporting hits (notnull, unaffected, (0,0,0)→world coordinates)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
castShape
public void castShape(RShapeCast shapeCast, ConstShapeCastSettings settings, RVec3Arg base, CastShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Cast a shape and collect the resulting hits.- Specified by:
castShapein interfaceConstNarrowPhaseQuery- Parameters:
shapeCast- the desired shape cast (notnull, unaffected)settings- the shape-cast configuration options to use (notnull, unaffected)base- the base location for reporting hits (notnull, unaffected, (0,0,0)→world coordinates)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)
-
castShape
public void castShape(RShapeCast shapeCast, ConstShapeCastSettings settings, RVec3Arg base, CastShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Cast a shape and collect the resulting hits.- Specified by:
castShapein interfaceConstNarrowPhaseQuery- Parameters:
shapeCast- the desired shape cast (notnull, unaffected)settings- the shape-cast configuration options to use (notnull, unaffected)base- the base location for reporting hits (notnull, unaffected, (0,0,0)→world coordinates)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)bodyFilter- the body filter to apply (notnull, unaffected)
-
castShape
public void castShape(RShapeCast shapeCast, ConstShapeCastSettings settings, RVec3Arg base, CastShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter) Cast a shape and collect the resulting hits.- Specified by:
castShapein interfaceConstNarrowPhaseQuery- Parameters:
shapeCast- the desired shape cast (notnull, unaffected)settings- the shape-cast configuration options to use (notnull, unaffected)base- the base location for reporting hits (notnull, unaffected, (0,0,0)→world coordinates)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)bodyFilter- the body filter to apply (notnull, unaffected)shapeFilter- the shape filter to apply (notnull, unaffected)
-
collectTransformedShapes
Collect leaf shapes that lie within the specified bounds.- Specified by:
collectTransformedShapesin interfaceConstNarrowPhaseQuery- Parameters:
box- the bounds (in system coordinates, notnull, unaffected)collector- the hit collector to use (notnull)
-
collectTransformedShapes
public void collectTransformedShapes(ConstAaBox box, TransformedShapeCollector collector, BroadPhaseLayerFilter bplFilter) Collect leaf shapes that lie within the specified bounds.- Specified by:
collectTransformedShapesin interfaceConstNarrowPhaseQuery- Parameters:
box- the bounds (in system coordinates, notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
collectTransformedShapes
public void collectTransformedShapes(ConstAaBox box, TransformedShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect leaf shapes that lie within the specified bounds.- Specified by:
collectTransformedShapesin interfaceConstNarrowPhaseQuery- Parameters:
box- the bounds (in system coordinates, 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)
-
collectTransformedShapes
public void collectTransformedShapes(ConstAaBox box, TransformedShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Collect leaf shapes that lie within the specified bounds.- Specified by:
collectTransformedShapesin interfaceConstNarrowPhaseQuery- Parameters:
box- the bounds (in system coordinates, 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)bodyFilter- the body filter to apply (notnull, unaffected)
-
collectTransformedShapes
public void collectTransformedShapes(ConstAaBox box, TransformedShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter) Collect leaf shapes that lie within the specified bounds.- Specified by:
collectTransformedShapesin interfaceConstNarrowPhaseQuery- Parameters:
box- the bounds (in system coordinates, 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)bodyFilter- the body filter to apply (notnull, unaffected)shapeFilter- the shape filter to apply (notnull, unaffected)
-
collidePoint
Collect collisions with the specified point.- Specified by:
collidePointin interfaceConstNarrowPhaseQuery- Parameters:
point- the location of the point to test (notnull, unaffected)collector- the hit collector to use (notnull)
-
collidePoint
public void collidePoint(RVec3Arg point, CollidePointCollector collector, BroadPhaseLayerFilter bplFilter) Collect collisions with the specified point.- Specified by:
collidePointin interfaceConstNarrowPhaseQuery- Parameters:
point- the location of the point to test (notnull, unaffected)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
collidePoint
public void collidePoint(RVec3Arg point, CollidePointCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect collisions with the specified point.- Specified by:
collidePointin interfaceConstNarrowPhaseQuery- Parameters:
point- the location of the point 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
public void collidePoint(RVec3Arg point, CollidePointCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Collect collisions with the specified point.- Specified by:
collidePointin interfaceConstNarrowPhaseQuery- Parameters:
point- the location of the point 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)bodyFilter- the body filter to apply (notnull, unaffected)
-
collidePoint
public void collidePoint(RVec3Arg point, CollidePointCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter) Collect collisions with the specified point.- Specified by:
collidePointin interfaceConstNarrowPhaseQuery- Parameters:
point- the location of the point 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)bodyFilter- the body filter to apply (notnull, unaffected)shapeFilter- the shape filter to apply (notnull, unaffected)
-
collideShape
public void collideShape(ConstShape shape, Vec3Arg shapeScale, RMat44Arg comTransform, ConstCollideShapeSettings settings, RVec3Arg base, CollideShapeCollector collector) Collect collisions with the specified shape.- Specified by:
collideShapein interfaceConstNarrowPhaseQuery- Parameters:
shape- the shape to test (notnull, unaffected)shapeScale- the scaling vector for the shape (notnull, unaffected)comTransform- the coordinate transform to apply to the shape's center of mass (notnull, unaffected)settings- the collision settings to use (notnull, unaffected)base- the base location for reporting hits (notnull, unaffected, (0,0,0)→world coordinates)collector- the hit collector to use (notnull)
-
collideShape
public void collideShape(ConstShape shape, Vec3Arg shapeScale, RMat44Arg comTransform, ConstCollideShapeSettings settings, RVec3Arg base, CollideShapeCollector collector, BroadPhaseLayerFilter bplFilter) Collect collisions with the specified shape.- Specified by:
collideShapein interfaceConstNarrowPhaseQuery- Parameters:
shape- the shape to test (notnull, unaffected)shapeScale- the scaling vector for the shape (notnull, unaffected)comTransform- the coordinate transform to apply to the shape's center of mass (notnull, unaffected)settings- the collision settings to use (notnull, unaffected)base- the base location for reporting hits (notnull, unaffected, (0,0,0)→world coordinates)collector- the hit collector to use (notnull)bplFilter- the broadphase-layer filter to apply (notnull, unaffected)
-
collideShape
public void collideShape(ConstShape shape, Vec3Arg shapeScale, RMat44Arg comTransform, ConstCollideShapeSettings settings, RVec3Arg base, CollideShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter) Collect collisions with the specified shape.- Specified by:
collideShapein interfaceConstNarrowPhaseQuery- Parameters:
shape- the shape to test (notnull, unaffected)shapeScale- the scaling vector for the shape (notnull, unaffected)comTransform- the coordinate transform to apply to the shape's center of mass (notnull, unaffected)settings- the collision settings to use (notnull, unaffected)base- the base location for reporting hits (notnull, unaffected, (0,0,0)→world coordinates)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)
-
collideShape
public void collideShape(ConstShape shape, Vec3Arg shapeScale, RMat44Arg comTransform, ConstCollideShapeSettings settings, RVec3Arg base, CollideShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter) Collect collisions with the specified shape.- Specified by:
collideShapein interfaceConstNarrowPhaseQuery- Parameters:
shape- the shape to test (notnull, unaffected)shapeScale- the scaling vector for the shape (notnull, unaffected)comTransform- the coordinate transform to apply to the shape's center of mass (notnull, unaffected)settings- the collision settings to use (notnull, unaffected)base- the base location for reporting hits (notnull, unaffected, (0,0,0)→world coordinates)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)bodyFilter- the body filter to apply (notnull, unaffected)
-
collideShape
public void collideShape(ConstShape shape, Vec3Arg shapeScale, RMat44Arg comTransform, ConstCollideShapeSettings settings, RVec3Arg base, CollideShapeCollector collector, BroadPhaseLayerFilter bplFilter, ObjectLayerFilter olFilter, BodyFilter bodyFilter, ShapeFilter shapeFilter) Collect collisions with the specified shape.- Specified by:
collideShapein interfaceConstNarrowPhaseQuery- Parameters:
shape- the shape to test (notnull, unaffected)shapeScale- the scaling vector for the shape (notnull, unaffected)comTransform- the coordinate transform to apply to the shape's center of mass (notnull, unaffected)settings- the collision settings to use (notnull, unaffected)base- the base location for reporting hits (notnull, unaffected, (0,0,0)→world coordinates)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)bodyFilter- the body filter to apply (notnull, unaffected)shapeFilter- the shape filter to apply (notnull, unaffected)
-