ICollisionDetect 类型

模块: cc 父模块: cc

Collision detect

索引

方法
  • raycastClosest Ray cast, and return information of the closest hit.
  • raycast Ray 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
参数列表
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
参数列表

条与 "" 相匹配的结果

    没有与 "" 匹配的结果