Collider.Polygon 类型

定义于: https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/collider/CCPolygonCollider.js:29

模块: cc 父模块: cc

用来定义多边形碰撞体

索引

属性(properties)
  • offset Vec2 位置偏移量
  • points [Vec2] 多边形顶点数组

Details

属性(properties)

offset

位置偏移量

meta description
类型 Vec2
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/collider/CCPolygonCollider.js:44
points

多边形顶点数组

meta description
类型 [Vec2]
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/collider/CCPolygonCollider.js:60

results matching ""

    No results matching ""