Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

How to define target.position in Vector3.MoveTowards?

$
0
0
So I'm looking at http://docs.unity3d.com/Documentation/ScriptReference/Vector3.MoveTowards.html but I do not understand how to define target.position. I want to move the object in it's Y axis +1 but I don't know how. Edit, this is what I have: Vector3 TargetPosition = new Vector3(0, 1, 0); Vector3.MoveTowards(transform.position, TargetPosition, JumpMovementSpeed * Time.deltaTime);

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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