2D物理碰撞形状基类

Base class of 2D physics collision shapes

层级 (查看完整内容)

实现

  • IClone

构造函数

访问器

方法

  • 参数

    • index: number = 0

      index通常用于ChainShape与PolygonShape等多形状的对象,CircleShape、EdgeShape等默认为0

    返回 boolean

    是否相交

    检测射线是否与形状相交

    Check if a ray intersects a shape