Help with setting directions?
I'm teaching a game design class and one of my students is making something like portal. He's got the shooting portals and moving through them thing down, but he's having trouble getting portals on a horizontal surface to be horizontal and similarly with vertical surfaces. Whenever the "portal bullet" hits one of the walls it just displays its horizontal mode. I tried making the creation of the portal set direction relative to the ball that was launched but that didn't quite work. Anyone have a simple solution that I'm not seeing?