ICollisionDetect
Class
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
worldRay
Rayoptions
IRaycastOptionsout
PhysicsRayResult
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
worldRay
Rayoptions
IRaycastOptionspool
RecyclePoolresultes
PhysicsRayResult[]