#Raycasting

1 messages · Page 1 of 1 (latest)

undone oar
#

Hello. I'm still new to raycasting. Before I'd use an invisible box collider as a trigger as my reach. Biggest issue I have had is interacting with objects. I will post some examples now and continue...

ionic crater
#

This video is really good.
Linecasting is especially good for object triggers.

undone oar
#

An example I have is my main door handle. it starts locked.

#

makes sense why whenever i press the interact button form anywhere that it plays the locked sound. The door is locked and I'm pressing the interact key hence playing the sound from anywhere

#

How can i do it so it only plays when interacting with the handle itself

#

I've tried days to trouble shoot. re wrote my script. tried the getcomponent<scriptwithraycast> and use the raycast hit to maybe see if that works. It didnt :/

undone oar
#

Hi. I have a sanity bar in my game, is there any way to use the lighting as a way make it go up or down?

#

if dark or very dim then it'll go down. if in light it'll go up