var r: geometry.Ray = geometry.Ray.create(0, 0, 0, 0, 0, -1);
//两种模式, 碰到物体就停止
if (PhysicsSystem.instance.raycastClosest(r)) {
let result: PhysicsRayResult = PhysicsSystem.instance.raycastClosestResult;
console.log("raycastClosestResult", result);
}
代码就这么简单, 物体只要设置成dynamic就返回不了结果, 更换物理引擎, 或者更换物体的为静态或者运动学就是好的, 这个BUG 已经存在3年了, 还不修复嘛?