Advertisement
LittleAngel

Bounce

Sep 3rd, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class CollisionTest : MonoBehaviour {
  5. public float forceValue;
  6.  
  7. void OnCollisionEnter () {
  8. rigidbody.AddRelativeForce(new Vector3(0,forceValue,0));
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement