playMaker

Author Topic: Mouse Look action not wrapping around 360 degrees! [SOLVED]  (Read 1835 times)

homeworld

  • Playmaker Newbie
  • *
  • Posts: 39
Mouse Look action not wrapping around 360 degrees! [SOLVED]
« on: October 28, 2017, 01:04:47 PM »
Hi! I've been revamping my basic first person mouselook, and hit a snag.

My game has a zero gravity mode where the player/camera should be able to spin around in 360 degrees, but when using the Mouse Look action, this is what happens:

http://danbkp.myqnapcloud.com/Web/2017-10-28_19-51-29.webm

For some reason, the X mouse axis wraps around just fine, but for the Y axis, it bounces back when hitting 90 or -90 degrees. Tips on how to solve this, other than maybe just ditching the mouse look action entirely and using rotations instead?

Thanks!
« Last Edit: October 28, 2017, 06:54:00 PM by homeworld »

Ofonna

  • Full Member
  • ***
  • Posts: 230
Re: Mouse Look action not wrapping around 360 degrees!
« Reply #1 on: October 28, 2017, 02:06:03 PM »
can you post the video on youtube or googledrive, the one in  the link is extremely choppy

homeworld

  • Playmaker Newbie
  • *
  • Posts: 39
Re: Mouse Look action not wrapping around 360 degrees!
« Reply #2 on: October 28, 2017, 04:55:01 PM »
Maybe this? https://giant.gfycat.com/PerkyAlienatedBee.webm

There's nothing particularly important in the vid, other than illustrating the problem i described; once the first person camera is directed directly downwards, it starts bouncing back up instead of going all the way around 360 degrees

Thanks for reading!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Mouse Look action not wrapping around 360 degrees!
« Reply #3 on: October 28, 2017, 05:09:55 PM »
Hi,
Can you show how the set up of your fsms/states/actions ?

Do you have colliders that might bounce off?

homeworld

  • Playmaker Newbie
  • *
  • Posts: 39
Re: Mouse Look action not wrapping around 360 degrees!
« Reply #4 on: October 28, 2017, 06:27:11 PM »
Hi Djaydino!

After you mentioned that, i went in and tried to isolate my issue further; i stripped away everything i had on my player object, and although i thought there couldn't be anything wrong with my FSM, i actually had TWO instances of the mouse look action, one for the X axis and one for the Y (this was done intentionally, to move the player and camera independently)

Once consolidating them both into one action, the jumping thankfully stopped;

Unfortunately, the effect i got isn't exactly what i was looking for; it seems like i need a more "local" solution than a "world" solution, because this is what happens when i try to move the camera left to right:

https://giant.gfycat.com/WarpedIllegalFlatcoatretriever.webm

I guess i'll have to research a new way to do this, considering the 'mouse look' action doesn't seem to have a way to approach this! Thanks very much for the help!

homeworld

  • Playmaker Newbie
  • *
  • Posts: 39
Re: Mouse Look action not wrapping around 360 degrees!
« Reply #5 on: October 28, 2017, 06:53:47 PM »
Just a quick update in case anyone is reading this at some point, the camera solution shown in this thread: http://hutonggames.com/playmakerforum/index.php?topic=47.0 works great and does exactly what i want, so all is good.

Good luck!