Page 1 of 1

Rotation after Portal

Posted: Fri Jul 28, 2017 4:08 pm
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

Re: Rotation after Portal

Posted: Sat Jul 29, 2017 10:53 am
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

Re: Rotation after Portal

Posted: Sat Jul 29, 2017 1:50 pm
by creativeocclusion
Thanks Tony...I should have been able to figure that out...Long hours at work...

Re: Rotation after Portal

Posted: Sat Jul 29, 2017 2:24 pm
by Tony Li
No worries; glad I could help!