Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OnCollisionEnter(collider:Collider){
- if (collider.gameObject.tag == "floor"){
- Debug.Log("box hits floor");
- }
- }
- //script is attached to a box, floor is a plane without rigidbody with the tag "floor"
Add Comment
Please, Sign In to add comment