[SOLVED] I need help with shooting portals

I have 2 portals that work, I need a way to shoot them on surfaces i can deem portalable, problem is, I have no idea how to do that, if anyone has a way i can do that please respond!

Hi @PotatoIndivdual !
Raycasting sounds like a good object for this, just put a tag on places you want to be “portalable” and raycast for that tag when you want to add one.

1 Like

my issue though is how do i rotate the portals on surfaces they are shot on

I managed to fix it, thanks!

1 Like

Great to hear! How did you figure it out?

By using raycasting, I am able to update the position of already placed assined working portals’ positions, then the script gets the normals of the surface and rotates said portal

1 Like

you can try it out here
https://launch.playcanvas.com/2307305?debug=true

1 Like