Wednesday, 11 November 2015

Unity 3D Turn Gravity On Off Tutorial20154

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




 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-





































9 comments:

  1. Thanks for the tutorials you shared.. Really useful for me.. :)
    invest in my idea

    ReplyDelete
  2. I need the best site for english songs downloading? Do you have any best site?
    INSPERATO by Kevin Mongelli

    ReplyDelete
  3. Is it possible to learn how to dance Hip Hop without going to classes?
    Play To Win (Teaser Trailer)

    ReplyDelete
  4. what are all the jobs in the entertainment industry?
    HOMEBOY RUS - COUNTIN MONEY

    ReplyDelete
  5. I really like the fresh perpective you did on the issue. I will be back soon to check up on new posts! Thank you!
    Mariah Carey - My All Cover by Bebé

    ReplyDelete
  6. The blog article very surprised to me! Your writing is good. In this I learned a lot! Thank you!
    Hip Hop

    ReplyDelete
  7. Thanks for sharing your thoughts with us.. they are really interesting.. I would like to read more from you.
    custom power banks

    ReplyDelete
  8. 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.
    custom power banks

    ReplyDelete