iBroski
|
  |
| Joined: 06 Jul 2011 |
| Total Posts: 100 |
|
|
| 29 Oct 2014 10:48 PM |
How can I one part is closer to the sun than another using GetSunDirection()?
Is this even possible? |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2014 10:57 PM |
| No, the sun is not a real part, only a celestial body used for visual appeal. It goes away if you add your own skybox. Now, what you could do is by knowing the sun is south, or right above you, wherever you are, (because north/south flips when you cross the equator...) you can create a program to check the time, then runs a another code to check the parts in the area, (after having each hour specified to a certain Vector3) and see which one is closest to that vector three. put a body force object in your characters torso, then change it until you go up slowly, notice how you never get closer to the sun? If you want to talk about this, message me and i can help you through it. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 Oct 2014 10:59 PM |
| But in theory, you can get the direction of the sun and get the part furthest in that direction (of course there will be some problems) |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2014 11:04 PM |
| Like i said, to create a method without problems, it gets complicated, but easy if you understand somewhat how to do it. Infact, i'm thinking of a code that would run in two separate scripts, one to change the vector3 value another to run the check. |
|
|
| Report Abuse |
|
|