Question by
maneggioausten · Aug 19, 2021 at 06:33 PM ·
gameobjectraycasttransformraycastingraycasthit
How would I project a Gameobject onto the surface of another?
I'm trying to get a portal-like portal gun working, I have portals working well, and can move the portals just fine, howevermy current method is to shoot a ray onto the walls, checking if it's a valid surface, getting the position of the raycast hit, then teleporting the portal gameObject onto that surface, however, currently the portal doesn't rotate properly to face the inside of the room, on the correct side of the wall
Comment
Your answer
Follow this Question
Related Questions
How to freeze an GameObject on x axis in specific direction? 1 Answer
RayCast2D and RayDraw errors 0 Answers
Physics.Raycast Not Working... Kinda 0 Answers
Raycast not working (NO ERRORS!) 1 Answer
NullReferenceException while raycasting? 0 Answers