• Collider.Polygon 类型
    • 索引
      • 属性(properties)
  • Details
    • 属性(properties)
      • offset
      • points

    Collider.Polygon 类型

    定义于: https://github.com/cocos-creator/engine/blob/42b297e9f0d18dfb930567b1e344bd173043d0d0/cocos2d/core/collider/CCPolygonCollider.js:30

    模块: cc父模块: cc

    用来定义多边形碰撞体

    索引

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

    Details

    属性(properties)

    offset
    位置偏移量
    metadescription
    类型Vec2
    定义于cocos2d/core/collider/CCPolygonCollider.js:45
    points
    多边形顶点数组
    metadescription
    类型Vec2[]
    定义于cocos2d/core/collider/CCPolygonCollider.js:61