More static queries (#216)
- and a data race fix for it - compare mesh versus heightfield
This commit is contained in:
parent
5d6364d731
commit
a8ac09f364
28 changed files with 486 additions and 183 deletions
|
|
@ -83,12 +83,6 @@ B3_API b3JointEvents b3World_GetJointEvents( b3WorldId worldId );
|
|||
B3_API b3TreeStats b3World_OverlapAABB( b3WorldId worldId, b3AABB aabb, b3QueryFilter filter, b3OverlapResultFcn* fcn,
|
||||
void* context );
|
||||
|
||||
/// Overlap test for all shapes that *potentially* overlap the provided AABB. This only considers static bodies,
|
||||
/// so it may be invoked concurrently with b3World_Step. This is not thread-safe with shape creation or destruction.
|
||||
/// This is a workaround for The Legend of California and may be removed later if the workaround is no longer needed.
|
||||
B3_API b3TreeStats b3World_OverlapAABB_Static( b3WorldId worldId, b3AABB aabb, b3QueryFilter filter,
|
||||
b3OverlapResultFcn* fcn, void* context );
|
||||
|
||||
/// Overlap test for all shapes that overlap the provided shape proxy. The proxy points are relative
|
||||
/// to the world origin, which lets the query stay precise far from the world origin.
|
||||
B3_API b3TreeStats b3World_OverlapShape( b3WorldId worldId, b3Pos origin, const b3ShapeProxy* proxy,
|
||||
|
|
@ -121,6 +115,26 @@ B3_API b3RayResult b3World_CastRayClosest( b3WorldId worldId, b3Pos origin, b3Ve
|
|||
B3_API b3TreeStats b3World_CastShape( b3WorldId worldId, b3Pos origin, const b3ShapeProxy* proxy, b3Vec3 translation,
|
||||
b3QueryFilter filter, b3CastResultFcn* fcn, void* context );
|
||||
|
||||
/// Overlap test for all shapes that *potentially* overlap the provided AABB. This only considers static bodies,
|
||||
/// so it may be invoked concurrently with b3World_Step. This is not thread-safe with creationg and destruction
|
||||
/// operations. This is a workaround for The Legend of California and may be removed later if the workaround is no
|
||||
/// longer needed. This is not part of a strategy to make concurrent queries thread-safe.
|
||||
B3_API b3TreeStats b3World_OverlapAABB_Static( b3WorldId worldId, b3AABB aabb, b3QueryFilter filter,
|
||||
b3OverlapResultFcn* fcn, void* context );
|
||||
|
||||
/// Similar for shape overlap.
|
||||
B3_API b3TreeStats b3World_OverlapShape_Static( b3WorldId worldId, b3Pos origin, const b3ShapeProxy* proxy,
|
||||
b3QueryFilter filter, b3OverlapResultFcn* fcn, void* context );
|
||||
|
||||
/// Similar for cast ray.
|
||||
B3_API b3TreeStats b3World_CastRay_Static( b3WorldId worldId, b3Pos origin, b3Vec3 translation, b3QueryFilter filter,
|
||||
b3CastResultFcn* fcn, void* context );
|
||||
|
||||
/// Similar for cast shape.
|
||||
B3_API b3TreeStats b3World_CastShape_Static( b3WorldId worldId, b3Pos origin, const b3ShapeProxy* proxy,
|
||||
b3Vec3 translation, b3QueryFilter filter, b3CastResultFcn* fcn,
|
||||
void* context );
|
||||
|
||||
/// Cast a capsule mover through the world. This is a special shape cast that handles sliding along
|
||||
/// other shapes while reducing clipping. This is not a good source of information about what the
|
||||
/// mover is touching. Instead use the planes returned by b3World_CollideMover. Ignores back-side
|
||||
|
|
|
|||
Loading…
Reference in a new issue