Quantcast
Channel: Answers by "Howey-Do-It"
Viewing all articles
Browse latest Browse all 12

Answer by Howey Do It

$
0
0
Transform.position.x/y/z is a read-only property. You can't modify it directly. This should work if I understand the question correctly. By setting the X and Y values to the current position it is simply not modifying them, in case the object is not stationary on the other axes. Which I am guessing is the case. ` transform.position = new Vector3(transform.position.x, transform.position.y, transform.position.z + 0.7f);`

Viewing all articles
Browse latest Browse all 12

Trending Articles



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