Manifold Class
Module: cc
Index
Properties
typeNumberManifold type : 0: e_circles, 1: e_faceA, 2: e_faceBlocalPointVec2-e_circles: the local center of circleAlocalNormalVec2-e_circles: not usedpoints[ManifoldPoint]the points of contact.
Details
Properties
type
Manifold type : 0: e_circles, 1: e_faceA, 2: e_faceB
| meta | description |
|---|---|
| Type | Number |
| Defined in | cocos2d/core/physics/CCPhysicsContact.js:125 |
localPoint
The local point usage depends on the manifold type: -e_circles: the local center of circleA -e_faceA: the center of faceA -e_faceB: the center of faceB
| meta | description |
|---|---|
| Type | Vec2 |
| Defined in | cocos2d/core/physics/CCPhysicsContact.js:134 |
localNormal
-e_circles: not used -e_faceA: the normal on polygonA -e_faceB: the normal on polygonB
| meta | description |
|---|---|
| Type | Vec2 |
| Defined in | cocos2d/core/physics/CCPhysicsContact.js:148 |
points
the points of contact.
| meta | description |
|---|---|
| Type | [ManifoldPoint] |
| Defined in | cocos2d/core/physics/CCPhysicsContact.js:161 |