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 » Scripters
Home Search
 

Re: Raycasting from sun position?

Previous Thread :: Next Thread 
badguy1233 is not online. badguy1233
Joined: 23 Jul 2009
Total Posts: 885
21 Mar 2016 03:44 PM
How would I raycast from the sun to a part?
Report Abuse
badguy1233 is not online. badguy1233
Joined: 23 Jul 2009
Total Posts: 885
21 Mar 2016 03:56 PM
bump
Report Abuse
arshiaslaya is not online. arshiaslaya
Joined: 04 Nov 2012
Total Posts: 2670
21 Mar 2016 03:56 PM
Doesn't work like that man.


Report Abuse
badguy1233 is not online. badguy1233
Joined: 23 Jul 2009
Total Posts: 885
21 Mar 2016 03:58 PM
Yeah, I know, but what would be the best way to go about it? I know about :GetSunDirection but that doesn't really help :\ Or maybe its all I need and I'm just to slow to comprehend what I should do with that
Report Abuse
arshiaslaya is not online. arshiaslaya
Joined: 04 Nov 2012
Total Posts: 2670
21 Mar 2016 04:01 PM
I'm pretty sure the sun doesn't have a position..


Report Abuse
arshiaslaya is not online. arshiaslaya
Joined: 04 Nov 2012
Total Posts: 2670
21 Mar 2016 04:02 PM
You could create your own physical sun, that is visible or transparent, and use that for raycast.


Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
21 Mar 2016 04:10 PM
As is mentioned, you can't really do that.

What is it that you're trying to do? Maybe if you elaborate we can help find another way to achieve the goal you want.
Report Abuse
c9_io is not online. c9_io
Joined: 15 Feb 2014
Total Posts: 2642
21 Mar 2016 04:10 PM
you can do the reverse tho


http://www.roblox.com/unnamed-item?id=385096183
Report Abuse
badguy1233 is not online. badguy1233
Joined: 23 Jul 2009
Total Posts: 885
21 Mar 2016 04:13 PM
Figured it out. I just raycasted to the sun's direction and if a part was not found then I called my function
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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