文档

Unity Engine

Unity Engine

bounciness

Determines the size of the bounce when the joint hits it's limit. Also known as restitution.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public float bounciness { get; set; }

Remarks

Additional Resources: JointLimits.bounceMinVelocity.
The size of the new velocity after the bounce will be determined as:
newVelocity = currentVelocity * bounciness
.
When opening an old project using the deprecated
maxBounce
and
minBounce
the new
bounciness
will be chosen as the maximum
maxBounce
and
minBounce
.