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.
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