Version: 2022.1
언어: 한국어
public void SetBounciness (int i, float bounciness);

파라미터

i Index of the contact point.
bounciness Bounciness value for the specified contact point.

설명

Set the restitution value for the specified contact point in this contact pair.

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.