PhysicMaterial.bounciness Manual     Reference     Scripting  
Scripting > Runtime Classes > PhysicMaterial
PhysicMaterial.bounciness

var bounciness : float

Description

How bouncy is the surface? A value of 0 will not bounce. A value of 1 will bounce without any loss of energy.

JavaScripts
collider.bounciness = 1;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
collider.bounciness = 1;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
collider.bounciness = 1