Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Proplem with position reset script of certain object

$
0
0
hello i want to achive a script when i press V the object no matter how far it went it gets back to the original position point near my player var startPosition : Vector3; function Awake () { startPosition == this.transform.position; } function Update () { if (Input.GetButton ("V")) transform.position = startPosition; }

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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