if (collisionShape.isConcave()) {
if (collisionShape.getShapeType() == BroadphaseNativeType.TRIANGLE_MESH_SHAPE_PROXYTYPE) {
// optimized version for BvhTriangleMeshShape
BvhTriangleMeshShape triangleMesh = (BvhTriangleMeshShape)collisionShape;
Transform worldTocollisionObject = Stack.alloc(Transform.class);
worldTocollisionObject.inverse(colObjWorldTransform);
Vector3f rayFromLocal = Stack.alloc(rayFromTrans.origin);
worldTocollisionObject.transform(rayFromLocal);
Vector3f rayToLocal = Stack.alloc(rayToTrans.origin);
worldTocollisionObject.transform(rayToLocal);