ICollisionDetect Class

Module: cc Parent Module: cc

Collision detect

Index

Methods
  • raycastClosest Ray cast, and return information of the closest hit.
  • raycast Ray cast against all bodies.

Details

Methods

raycastClosest

Ray cast, and return information of the closest hit.

meta description
Returns boolean
Defined in cocos2d/core/3d/physics/spec/i-physics-world.ts:59
Parameters
raycast

Ray cast against all bodies. The provided callback will be executed for each hit with a RaycastResult as single argument.

meta description
Returns boolean
Defined in cocos2d/core/3d/physics/spec/i-physics-world.ts:69
Parameters

results matching ""

    No results matching ""