Manifold 类型
模块: cc
索引
属性(properties)
typeNumberManifold 类型 : 0: e_circles, 1: e_faceA, 2: e_faceBlocalPointVec2用途取决于 manifold 类型...localNormalVec2-e_circles: 没被使用到...points[ManifoldPoint]接触点信息。
Details
属性(properties)
type
Manifold 类型 : 0: e_circles, 1: e_faceA, 2: e_faceB
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/physics/CCPhysicsContact.js:125 |
localPoint
用途取决于 manifold 类型 -e_circles: circleA 的本地中心点 -e_faceA: faceA 的本地中心点 -e_faceB: faceB 的本地中心点
| meta | description |
|---|---|
| 类型 | Vec2 |
| 定义于 | cocos2d/core/physics/CCPhysicsContact.js:134 |
localNormal
-e_circles: 没被使用到 -e_faceA: polygonA 的法向量 -e_faceB: polygonB 的法向量
| meta | description |
|---|---|
| 类型 | Vec2 |
| 定义于 | cocos2d/core/physics/CCPhysicsContact.js:148 |
points
接触点信息。
| meta | description |
|---|---|
| 类型 | [ManifoldPoint] |
| 定义于 | cocos2d/core/physics/CCPhysicsContact.js:161 |