PhysicsRayCastResult
Class
Module: cc
Index
Properties
collider
PhysicsCollider
The PhysicsCollider which intersects with the raycastpoint
Vec2
The intersection pointnormal
Vec2
The normal vector at the point of intersectionfraction
Number
The 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 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsManager.js:672 |
point
The intersection point
meta | description |
---|---|
Type | Vec2 |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsManager.js:679 |
normal
The normal vector at the point of intersection
meta | description |
---|---|
Type | Vec2 |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsManager.js:686 |
fraction
The fraction of the raycast path at the point of intersection
meta | description |
---|---|
Type | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/physics/CCPhysicsManager.js:693 |