Function shapeProximity
-
Parameters
- world: PhysicsWorld
The physics world to query.
- query: ShapeProximityQuery
Query shape, transform, and search distance.
Returns ShapeProximityResult
The proximity result;
hasHitisfalsewhen nothing is within range. - world: PhysicsWorld
Find the closest point between a query shape and the nearest body in the world.
The query shape is positioned at
position/rotationand tested against the world's broadphase. When a body is found withinmaxDistance,inputHitPointis the closest point on the query shape andhitPointis the closest point on the hit body (world space). Run at least one physics step first so the broadphase exists.