Rotation after Portal

Announcements, support questions, and discussion for Save System for Realistic FPS Prefab.
Post Reply
creativeocclusion
Posts: 5
Joined: Thu Jul 13, 2017 2:06 pm

Rotation after Portal

Post by creativeocclusion »

I was wondering how to adjust the rotation of the player after he goes through the portal...The levels I have made have a teleporter in them and in some levels player is facing the back of the teleporter after going through the portal...It is different on each level so I need a way to set the rotation...Thanks for any help....CO
User avatar
Tony Li
Posts: 22000
Joined: Thu Jul 18, 2013 1:27 pm

Re: Rotation after Portal

Post by Tony Li »

Hi!

Set the rotation of the spawnpoint in the destination scene. For example, this is the portal in DemoScene1:

Image

When arriving in DemoScene2 from this portal, the player will spawn to match the position and rotation of the GameObject named "Spawnpoint from DemoScene1":

Image
creativeocclusion
Posts: 5
Joined: Thu Jul 13, 2017 2:06 pm

Re: Rotation after Portal

Post by creativeocclusion »

Thanks Tony...I should have been able to figure that out...Long hours at work...
User avatar
Tony Li
Posts: 22000
Joined: Thu Jul 18, 2013 1:27 pm

Re: Rotation after Portal

Post by Tony Li »

No worries; glad I could help!
Post Reply