Playmaker Forum

PlayMaker News => General Discussion => Topic started by: kentcheung2000 on January 23, 2019, 11:44:31 AM

Title: Set Camera to different spot.
Post by: kentcheung2000 on January 23, 2019, 11:44:31 AM
I like to set the player to  3 players.  One at a time. How do it make it happen smoothly?

Thanks.

Kent
Title: Re: Set Camera to different spot.
Post by: djaydino on January 23, 2019, 09:35:33 PM
Hi.
You can tween to move the camera or maybe with cinemachine.

for a quick test you can use Vector3 interpolate (maybe it's even good enough for you).

Lets say you want the camera to move from player 1 to player 2 :

Get position from player 1 and from player 2

Vector3 interpolate set player 1 position in From Vector and player 2 position in To Vector.
Time is the duration.
you can also change the mode, but there are only 2 mode at the moment on this action.