-
- Downloads
ENH: Adds capsule-mesh collision detection
Adds capsule-point cloud collision detection. First the each point in mesh is checked against the bounding sphere of the capsule. If inside, the closest point is found on the line joining the two apexes of the capsule. If the point is inside the bounding sphere then the closest point should be inside the capsule. If the distance between the closest point and the mesh point is less than radius of the hemispheres of the capsule, the collision is registered.
Showing
- Base/Collision/CollisionDetection/imstkCollisionDetection.h 2 additions, 1 deletionBase/Collision/CollisionDetection/imstkCollisionDetection.h
- Base/Collision/CollisionDetection/imstkMeshToCapsuleCD.cpp 79 additions, 0 deletionsBase/Collision/CollisionDetection/imstkMeshToCapsuleCD.cpp
- Base/Collision/CollisionDetection/imstkMeshToCapsuleCD.h 74 additions, 0 deletionsBase/Collision/CollisionDetection/imstkMeshToCapsuleCD.h
Loading
Please register or sign in to comment