PhysicsRayCastResult Class
Module: cc
Index
Properties
colliderPhysicsColliderThe PhysicsCollider which intersects with the raycastpointVec2The intersection pointnormalVec2The normal vector at the point of intersectionfractionNumberThe fraction of the raycast path at the point of intersection
Details
Properties
collider
The PhysicsCollider which intersects with the raycast
| meta | description |
|---|---|
| Type | PhysicsCollider |
| Defined in | cocos2d/core/physics/CCPhysicsManager.js:692 |
point
The intersection point
| meta | description |
|---|---|
| Type | Vec2 |
| Defined in | cocos2d/core/physics/CCPhysicsManager.js:699 |
normal
The normal vector at the point of intersection
| meta | description |
|---|---|
| Type | Vec2 |
| Defined in | cocos2d/core/physics/CCPhysicsManager.js:706 |
fraction
The fraction of the raycast path at the point of intersection
| meta | description |
|---|---|
| Type | Number |
| Defined in | cocos2d/core/physics/CCPhysicsManager.js:713 |