Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Sly on March 03, 2014, 09:28:49 AM

Title: Player Controller rotating slowly to an axis at the end of his movement
Post by: Sly on March 03, 2014, 09:28:49 AM

Hello Guyz,

I follow this tutorial to create a player controller:
http://www.youtube.com/watch?v=od78RhlLXUI (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
Title: Re: Player Controller rotating slowly to an axis at the end of his movement
Post by: Sly on March 04, 2014, 10:35:14 AM
No one knows what's going on or has an idea?
Title: Re: Player Controller rotating slowly to an axis at the end of his movement
Post by: jeanfabre on March 05, 2014, 02:30:10 AM
Hi,

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

bye,

 Jean
Title: Re: Player Controller rotating slowly to an axis at the end of his movement
Post by: Sly on March 05, 2014, 09:34:15 AM
[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.
Title: Re: Player Controller rotating slowly to an axis at the end of his movement
Post by: jeanfabre on March 12, 2014, 04:36:58 AM
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