Unity 3D Turn Gravity On Off Tutorial20154
DIRECT DOWNLOAD HERE
THIS IS BACKUP IN TEXT FORM Tutorial20154
1. Create New C# and name it : TurnGravityOnOff
2. Copy & Past this text and save C# :
---------------------------------------------------------------------------------
using UnityEngine;
using System.Collections;
using UnityEngine;
using System.Collections;
public class TurnGravityOnOff : MonoBehaviour {
void OnTriggerEnter(Collider other) {
if (other.tag == "Player"){ // if player entered the trigger...
rigidbody.useGravity = true; // turn gravity on
rigidbody.isKinematic = false;// turn kinematic off
audio.PlayOneShot(audio.clip, 1.0f); // if player entered the trigger play audio...
Destroy(gameObject, 5.0f); // if player entered the trigger destroy after 5 sec...
}
}
}
---------------------------------------------------------------------------------
Thanks for the tutorials you shared.. Really useful for me.. :)
ReplyDeleteinvest in my idea
I need the best site for english songs downloading? Do you have any best site?
ReplyDeleteINSPERATO by Kevin Mongelli
What are some really good songs?
ReplyDeleteGamrini Music
Is it possible to learn how to dance Hip Hop without going to classes?
ReplyDeletePlay To Win (Teaser Trailer)
what are all the jobs in the entertainment industry?
ReplyDeleteHOMEBOY RUS - COUNTIN MONEY
I really like the fresh perpective you did on the issue. I will be back soon to check up on new posts! Thank you!
ReplyDeleteMariah Carey - My All Cover by Bebé
The blog article very surprised to me! Your writing is good. In this I learned a lot! Thank you!
ReplyDeleteHip Hop
Thanks for sharing your thoughts with us.. they are really interesting.. I would like to read more from you.
ReplyDeletecustom power banks
I like your post & I will always be coming frequently to read more of your post. Thank you very much for your post once more.
ReplyDeletecustom power banks