Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: OmegaCo on February 02, 2018, 05:29:49 AM

Title: Camera reset postion
Post by: OmegaCo on February 02, 2018, 05:29:49 AM
Hello, I'm having trouble with my third person camera movement. I have it so that when I press the right mouse button I can rotate the camera and have the character follow the direction of the camera and still run forward in a straight line. The problem is panning the camera to high over horizon it pans my view directly to ground I have attach two pngs for the my state machines.
Title: Re: Camera reset postion
Post by: djaydino on February 02, 2018, 10:24:03 AM
Hi,
you can use the minimum and maximum values to limit the rotations try -30 / 30 and adjust until you think its good
Title: Re: Camera reset postion
Post by: OmegaCo on February 02, 2018, 10:37:37 AM
Ok that helps but that somewhat limits my view just under where the camera would reset, is there anyway I could tell the camera to not reset its position.
Title: Re: Camera reset postion
Post by: djaydino on February 03, 2018, 11:10:15 AM
Hi.
I am not really sure what you mean,
Can you show a video or animated gif ?
From when it's 'reset'
Title: Re: Camera reset postion
Post by: OmegaCo on February 03, 2018, 11:48:38 AM
yea every time i pan up and let go of the mouse button and then press to rotate it just pans it all the way to the ground.

https://giphy.com/gifs/xT1R9BaKVxVXH5kQvu
Title: Re: Camera reset postion
Post by: djaydino on February 03, 2018, 01:39:18 PM
Hi,
Have you tried on full screen?

If you release outside the game screen you might get different effect
Title: Re: Camera reset postion
Post by: djaydino on February 03, 2018, 01:47:59 PM
Hi.
I tested a bit and i think you need to use 'mouse look 2' action
Title: Re: Camera reset postion
Post by: OmegaCo on February 03, 2018, 02:54:06 PM
Thank you so much it works ;D want to know is there an action for some kind of camera collision or maybe a tutorial you could link.

Thank you

Title: Re: Camera reset postion
Post by: djaydino on February 04, 2018, 07:28:03 PM
Hi.
I can't really find some tutorial for this, but i am thinking maybe to use 2 child objects on the camera with colliders or triggers. place on the lefts side and right side of the camera view.

I will see if i have some time tomorrow to test some things out.
Title: Re: Camera reset postion
Post by: OmegaCo on February 05, 2018, 03:20:25 AM
thank you so much i really appreciate this help :) I'm going try collider
Title: Re: Camera reset postion
Post by: djaydino on February 05, 2018, 05:24:55 PM
Hi,
No problem, let me know if it worked, else i will see if i can try some things :)