SoundGuy / GGJ2021

1 stars 0 forks source link

Raycaster with linerenderer from controller #1

Open ilariadinardo3 opened 3 years ago

ilariadinardo3 commented 3 years ago

To open the door for change scene, is it possible do it with raycaster and trigger enter? I need to do this with the controller pointer, but i can't do it. Can you help me?

SoundGuy commented 3 years ago

@De-Panther , what do you think?

De-Panther commented 3 years ago

As you can see in the project, we use a Camera component in the pose of the controller, to work with Unity's EventSystem. I guess you can add PhysicsRaycaster to the GameObject with the Camera, and it'll be able to interact with 3D colliders in the scene.

ilariadinardo3 commented 3 years ago

I managed to do everything I needed, thanks. I have another question, is it possible to make the "hit point" or the raycaster work with the left and right camera in the smartphone? I have a deadline tomorrow and only now i discovered this problem