Collider.Polygon 类型
用来定义多边形碰撞体
索引
属性(properties)
Details
属性(properties)
offset
位置偏移量
| meta | description |
|---|---|
| 类型 | Vec2 |
| 定义于 | cocos2d/core/collider/CCPolygonCollider.js:45 |
points
多边形顶点数组
| meta | description |
|---|---|
| 类型 | Vec2[] |
| 定义于 | cocos2d/core/collider/CCPolygonCollider.js:61 |