Guest User

Untitled

a guest
Aug 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. OnCollisionEnter(collider:Collider){
  2.     if (collider.gameObject.tag == "floor"){
  3.         Debug.Log("box hits floor");
  4.     }
  5. }
  6.  
  7. //script is attached to a box, floor is a plane without rigidbody with the tag "floor"
Add Comment
Please, Sign In to add comment