mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 05:40:05 +00:00
Add comments to btCollisionWorld
This commit is contained in:
parent
2cc9ff2176
commit
88758e44cb
@ -418,7 +418,8 @@ void btCollisionWorld::rayTestSingleInternal(const btTransform& rayFromTrans,con
|
||||
btVector3 scale = scaledTriangleMesh->getLocalScaling();
|
||||
btVector3 rayFromLocalScaled = rayFromLocal / scale;
|
||||
btVector3 rayToLocalScaled = rayToLocal / scale;
|
||||
|
||||
|
||||
//perform raycast in the underlying btBvhTriangleMeshShape
|
||||
BridgeTriangleRaycastCallback rcb(rayFromLocalScaled, rayToLocalScaled, &resultCallback, collisionObjectWrap->getCollisionObject(), triangleMesh, colObjWorldTransform);
|
||||
rcb.m_hitFraction = resultCallback.m_closestHitFraction;
|
||||
triangleMesh->performRaycast(&rcb, rayFromLocalScaled, rayToLocalScaled);
|
||||
|
Loading…
Reference in New Issue
Block a user