generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Closest to sun

Previous Thread :: Next Thread 
iBroski is not online. 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
rollercoaster57 is not online. rollercoaster57
Joined: 06 Nov 2010
Total Posts: 67
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 is not online. 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
rollercoaster57 is not online. rollercoaster57
Joined: 06 Nov 2010
Total Posts: 67
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image