2Dphysics chain shape

2D物理链形碰撞形状

层级 (查看完整内容)

构造函数

访问器

  • get density(): number
  • 返回 number

    The density value. The value can be zero or a positive number. It is recommended to use similar densities to improve stacking stability. The default value is 10.

    密度值。值可以为零或者是正数,建议使用相似的密度以改善堆叠稳定性。默认值为 10。

  • set density(value): void
  • 参数

    • value: number

    返回 void

  • get restitutionThreshold(): number
  • 返回 number

    Restitution velocity threshold, usually in meters per second. Collisions above this velocity will have restitution applied (will bounce).

    恢复速度阈值,通常以米/秒为单位。高于此速度的碰撞将应用恢复(将反弹)。

  • set restitutionThreshold(value): void
  • 参数

    • value: number

    返回 void

方法