How do you make sure that your object keeps a constant distance from the center of sphere while it moves? So that I can use it to make a character move on a spherical terrain.
Aug 03 '12 at 12:20 PM
Aug 03 '12 at 10:39 AM
solution 1: check distance in Update() function and fix if you need
solution 2: make object as child to sphere, set distance once and just rotate it
Aug 04 '12 at 12:56 PM
Hey, thanks... I was looking for a more calculated way. But eventually, used Solution 2 : where I connected the satellite body (via a joint) to an empty game object in the center. And I made that Empty game object "LookAt" the point I want to reach.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Aug 03 '12 at 12:20 PM
Seen: 470 times
Last Updated: Aug 07 '12 at 06:28 AM
iTween for Dynamically Moving Objects around a Sphere
turn around 90 curve with forward/rotation
Can iTween be used to constrain motion for an arbitrarily drawn curve?
how to move objects along a curve?
Custom Easing Types using Curves for Motion?
Make an object follow a curved path using iTween
how to move an object in a curved way
how to turn a object in a curved way
Move object through set of points
Animation Curve evaluate beyond maximum