#Shadow detector

18 messages · Page 1 of 1 (latest)

deep dust
#

So, im trying to get the player ground pos, adding the direction of the sun (magnutude 100). and raycast into the ground pos. if it did not hit a pos close to the player ground pos, assume you are standing on a shadow.

Though it wont work. im trying to use distance but that wont work ether. The number decreases as i get closer to (0,0,0) and i have no idea why

https://youtu.be/v9bpcEmkBbQ

#

i fixed the sun dir from but it still isnt done

pine nebula
#

Its possible that your Raycast is failing to hit the ground, even while it is not being obstructed by an object, due to it not having enough length. Try increasing the "Max Distance (m)" to 101, to make sure this is not a problem.

The "sun dir from" vector3 value should be equal to the "sun dir" vector3 value scaled by -1/100. Try negating the current "sun dir from" vector3 value to correct this error.

Let me know if this helps.

arctic mist
#

Just spam 9 to make sure it doesn’t work

stable saddle
arctic mist
deep dust
#

yeah

#

it is

arctic mist
#

Nice

deep dust
#
Roblox

Check out Silhouette. It’s one of the millions of unique, user-generated 3D experiences created on Roblox. Let's find a shady spot to lay our head down...

Silhouette is an obstacle course game in which the goal is to remain in the shadows at all times. Can you make it past all 50 levels?

arctic mist
#

Pretty impressive you did it in RR

deep dust
#

yeah

arctic mist
#

You have plans to make a full game?

deep dust
#

maybe like 10 levels

#

unless people want more