playMaker

Author Topic: Limited flight roll based on Mouse Look  (Read 1772 times)

MajorIdea

  • Full Member
  • ***
  • Posts: 131
Limited flight roll based on Mouse Look
« on: January 18, 2013, 03:42:20 PM »
Hi!

So I have this flying character that you can move arround with a Mouse Look action set to it, so when I drag my mouse to the left, the player goes to that direction.

Just wondering if theres a way using playmaker of getting the character to bank (or roll, same thing) in the direction its turning based on the values in the Mouse Look action.

So when
mouse look X = 0 Character is parallel to the ground.
mouse look X > 1 Character rolls to a limited angle in one direction.
mouse look X < 1 Character rolls to a limited angle in the other direction.

Any ideas? Or maybe its not possible using playmaker? If the controls were using keys to rotate (such as A and D) I might have a starting point. But with the Mouse Look I have no idea.  ???

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Limited flight roll based on Mouse Look
« Reply #1 on: January 21, 2013, 01:17:17 AM »
Hi,

 I just replied to another thread on this.

 MouseLook is something difficult to deal with when you want something specific. You might be better off implement this yourself.

In your descriptiong, you are actually not far from what you need to do. Have you tried implementing the logic you describe? checking for the camera angle and rotate the character accordingly?

bye,

 Jean