playMaker

Author Topic: Player Controller rotating slowly to an axis at the end of his movement  (Read 1984 times)

Sly

  • Full Member
  • ***
  • Posts: 123

Hello Guyz,

I follow this tutorial to create a player controller:
http://www.youtube.com/watch?v=od78RhlLXUI

The tutorial is well done and explain correctly how to do it. (thanks to playmaker team by the way).

But I've got one thing I don't understand.
My player is moving correctly but at the end of his movement (when you release the button) the player is slowly rotating to an axis (in my case to the X or Z). So he's slowly pointing to X or Z (nearest axis). And I don't want to have this. When

I release the directional button I want him to stop directly, and not slowly pointing to an axis.
What I'm suppose to change for prevent this, because it's the default behavior for this tutorial.

Ps: I attached a screenshot of my FSM

Sly

  • Full Member
  • ***
  • Posts: 123
No one knows what's going on or has an idea?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Hi,

 Can you share your scene? I'll have a look.

bye,

 Jean

Sly

  • Full Member
  • ***
  • Posts: 123
[LINK REMOVED] note: you are not allowed to redistribute PlayMaker dll.

There is my project. So you load the scene and control the player.
You will notice when making diagonal move, the player will sometime redirct is view to an axe. It's a little bit annoying and I don't know how to prevent this.
« Last Edit: March 12, 2014, 04:33:09 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Hi,

 You are using a "smooth look at direction" action so indeed the rotation is smoothed out. increase the "Speed" to 20 and it will be fine.

bye,

 Jean