Quantcast
Channel: Answers for "Moving object along its own axis"
Browsing index pages (4 articles)
↧

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 Article


Answer 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


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 Article

Answer 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
Browsing index pages (4 articles)


Latest Images