RayCastType
Enum
Module: cc
Enum for RayCastType.
Index
Closest
Any
AllClosest
All
Details
Closest
Detects closest collider on the raycast path.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/physics/CCPhysicsTypes.js:84 |
Any
Detects any collider on the raycast path. Once detects a collider, will stop the searching process.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/physics/CCPhysicsTypes.js:92 |
AllClosest
Detects all colliders on the raycast path. One collider may return several collision points(because one collider may have several fixtures, one fixture will return one point, the point may inside collider), AllClosest will return the closest one.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/physics/CCPhysicsTypes.js:102 |
All
Detects all colliders on the raycast path. One collider may return several collision points, All will return all these points.
meta | description |
---|---|
Type | Number |
Defined in | cocos2d/core/physics/CCPhysicsTypes.js:114 |