Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > Pre-University Math Help > Trigonometry
Reply
 
Thread Tools Display Modes
  #1  
Old November 9th, 2009, 06:19 PM
Newbie
 
Join Date: Dec 2008
Posts: 5
Country:
Thanks: 1
Thanked 0 Times in 0 Posts
chrisneedshelp is on a distinguished road
Default Moving a sun though orbit

So I have a sun object in a flat world. By flat world, I mean that it is like a snow globe, where the ground is flat and there is an arc around the top. I want to have a sun go from one end, to the other, naturally.

So my world's time is represented in percentages. I have a floating point value, from 0.0 to 0.999999, whcih represents the percentage of the day that has passed. from 0.3 to 0.7, the sun should be up. It should start at one end of the world at 0.3, orbit to a place somewhere in the middle (in an arc motion) for 0.5 and finish at the other end at 0.7. At 0.7, the moon should come in from where the sun started. At 0.0, it should be at the center, where the sun was, and at 0.3, it should be at the end.

This does not need to be exact, just a decent simulation that will be relatively smooth. I will give it three points, a starting point, middle point, and end point. I need an equation taht will use the percentage of the day passed, along with the 3 points I am providing, to create a smooth movement along this path.
Reply With Quote
Advertisement
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 01:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.