ICollisionDetect 类型
Collision detect
索引
方法
raycastClosestRay cast, and return information of the closest hit.raycastRay cast against all bodies. The provided callback will be executed for each hit with a RaycastResult as single argument.
Details
方法
raycastClosest
Ray cast, and return information of the closest hit.
| meta | description | 
|---|---|
| 返回 | boolean | 
| 定义于 | cocos2d/core/3d/physics/spec/i-physics-world.ts:59 | 
参数列表
worldRayRayoptionsIRaycastOptionsoutPhysicsRayResult
raycast
Ray cast against all bodies. The provided callback will be executed for each hit with a RaycastResult as single argument.
| meta | description | 
|---|---|
| 返回 | boolean | 
| 定义于 | cocos2d/core/3d/physics/spec/i-physics-world.ts:69 | 
参数列表
worldRayRayoptionsIRaycastOptionspoolRecyclePoolresultesPhysicsRayResult[]