playMaker

Author Topic: Camera reset postion  (Read 2517 times)

OmegaCo

  • Playmaker Newbie
  • *
  • Posts: 9
Camera reset postion
« 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Camera reset postion
« Reply #1 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

OmegaCo

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Camera reset postion
« Reply #2 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Camera reset postion
« Reply #3 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'

OmegaCo

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Camera reset postion
« Reply #4 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Camera reset postion
« Reply #5 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Camera reset postion
« Reply #6 on: February 03, 2018, 01:47:59 PM »
Hi.
I tested a bit and i think you need to use 'mouse look 2' action

OmegaCo

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Camera reset postion
« Reply #7 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


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Camera reset postion
« Reply #8 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.

OmegaCo

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Camera reset postion
« Reply #9 on: February 05, 2018, 03:20:25 AM »
thank you so much i really appreciate this help :) I'm going try collider

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Camera reset postion
« Reply #10 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 :)