文档

Unity Engine

Unity Engine

GetBounciness(int)

Get the restitution value for the specified contact point in this contact pair.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public float GetBounciness(int i)

Parameters

Index of the contact point.

Returns

Type

Description

floatBounciness value for the specified contact point.

Remarks

Restitution value specifies how bouncy the surfaces at the specified contact point are.
Bounciness of 0 means absolutely not bouncy at all (all the kinetic energy is lost at contact). A value of 1 means all the kinetic energy (and then some due to computational errors) will be conserved. Because of that, normally, bounciness is somewhere in between 0 and 1.