Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

How can I add Force to my object with gravity so that It can travel to Long Distance?

$
0
0
I am new In Unity and I am Developing one Simple game where Plates are Initiate from One place and It will Destroy on click. I want to show my plate flying from one place to another place with Gravity. My code for Plate Initiate is Below.. void Update () { InitTimer -= Time.deltaTime; print("InitTimer" +InitTimer); if(InitTimer <= 0){ InitTimer = Random.Range(1f, 2f); Instantiate(plate,new Vector3 (range,transform.position.y,transform.position.z), Quaternion.identity); } } Can Anyone give me any reference code or any guidance? I want to fly my every plate In one Direction. Thank You In Advance.. Regards, [Dharmesh Kheni][1] [1]: http://www.variyasoftsolutions.com/unity3d.html

Viewing all articles
Browse latest Browse all 1264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>