View Full Version : is there a way to revolve an object around something in an elliptical pattern
is there a way to revolve an object around something in an elliptical pattern other than a circular pattern. If so, how
07-11-2001, 12:03 PM
How are you revolving an object in circular pattern?
It may help us to understand what u are trying to do.
i am translating the object out and then rotating it. This is inside of a push,pop matrix
07-11-2001, 02:10 PM
Yes, you can. But only if you calculate a new translation. This is fairly easy if the ellipse's directrix is parallel to one of the coordinate axes, as then you just need to use the appropriate polar equation of a conic section (with the eccentricity set to produce an ellipse).
07-11-2001, 03:19 PM
you could rotate it 't' radians and then translate it out 'r' units of length according to
'r = sqrt[1 / (((cos(t)^2)/a^2) + ((sin(t)^2)/b^2)) ]'. Where 'a' is the x-axis axis and 'b' is the y-axis axis of the ellipse.
This is the polar coordinate thing DFrey mentioned earlier. Be warned though that this method will cause the object to sweep out equal areas of the ellipse in equal time intervals. That means that the object seems to speed up when you go turn around the narrow curve of the ellipse.
[This message has been edited by grady (edited 07-11-2001).]
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.