Answers for "unity 2d move object to position"

3

move gameobject in unity 2d

transform.position = new Vector3(transform.position.x + movespeed, transform.position.y);
Posted by: Guest on May-04-2021
7

how to move towards an object unity

//This will work for 2d or 3d platforms
//Make sure to call in Update or else it wont work
Vector3.MoveTowards(transform.position, taretPos, Qiaternion.identiy)
Posted by: Guest on January-06-2020
0

move to where it facing unity 2d

transform.up
Posted by: Guest on June-29-2020

Browse Popular Code Answers by Language