mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-11-12 02:45:40 +00:00
add collisionFilterMask to rayTestBatch and rayTest
This will allow to exclude (filter) certain bodies. By default, static bodies have collision group 2, and dynamic (mass=1) bodies have collision group 1. As long as mask & group != 0, a raytest will be performed.
This commit is contained in:
@@ -626,6 +626,8 @@ extern "C"
|
||||
B3_SHARED_API void b3RaycastBatchAddRays(b3PhysicsClientHandle physClient, b3SharedMemoryCommandHandle commandHandle, const double* rayFromWorld, const double* rayToWorld, int numRays);
|
||||
B3_SHARED_API void b3RaycastBatchSetParentObject(b3SharedMemoryCommandHandle commandHandle, int parentObjectUniqueId, int parentLinkIndex);
|
||||
B3_SHARED_API void b3RaycastBatchSetReportHitNumber(b3SharedMemoryCommandHandle commandHandle, int reportHitNumber);
|
||||
B3_SHARED_API void b3RaycastBatchSetCollisionFilterMask(b3SharedMemoryCommandHandle commandHandle, int collisionFilterMask);
|
||||
|
||||
|
||||
B3_SHARED_API void b3GetRaycastInformation(b3PhysicsClientHandle physClient, struct b3RaycastInformation* raycastInfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user