Answer by spinaljack
Do this:function Update(){ transform.position += transform.TransformDirection(Vector3.right)*moveSpeed; transform.LookAt(spherePosition); } This makes your character move along its x-axis while always...
View ArticleAnswer by Thomas Hentschel Lund
One way would be to use the classic formula for a position on the point on a circle with a given radius. Right now you are simply calculating the position along one of the axis - you will need to...
View ArticleAnswer by spinaljack
Do this:function Update(){ transform.position += transform.TransformDirection(Vector3.right)*moveSpeed; transform.LookAt(spherePosition); } This makes your character move along its x-axis while always...
View ArticleAnswer by Thomas Hentschel Lund
One way would be to use the classic formula for a position on the point on a circle with a given radius. Right now you are simply calculating the position along one of the axis - you will need to...
View Article