ICollisionDetect Class
Collision detect
Index
Methods
raycastClosestRay cast, and return information of the closest hit.raycastRay 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
worldRayRayoptionsIRaycastOptionsoutPhysicsRayResult
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
worldRayRayoptionsIRaycastOptionspoolRecyclePoolresultesPhysicsRayResult[]