playMaker

Author Topic: Awkward Sliding Around with animations.  (Read 1015 times)

Fictatious

  • Playmaker Newbie
  • *
  • Posts: 7
Awkward Sliding Around with animations.
« on: March 20, 2021, 06:46:49 PM »
Trying to get get a simple character running sprinting and idle going. However the method I'm using seems to be causing strange ice skating affect that seems to randomly come and go. (I have my animations are set to 0 exit time by the way)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Awkward Sliding Around with animations.
« Reply #1 on: March 21, 2021, 08:40:06 PM »
Hi.
i can see on 1 image that on the action 'Get Axis Vector' it's Multiplier is 4 instead of 1
also Get Axis Vector should be above Controllers simple move.

not sure if that is the reason tho.

But i would suggest to split this up in sperate fsm's

fsm 1

State 1 :
Get Axis Vector
Controller Simple Move, set speed as a variable.
Set Animator Float

Fsm 2
State 1 :
Fsm Float Compare (Ecosystem)

State 2 :
Fsm Float Compare (Ecosystem)
Smoot Look At Direction

Fsm 3

State 1 :
Get Button Down
Set Fsm Float (Set Speed on fsm 1)

State 2 :
Get Button Up
Set Fsm Float (Set Speed on fsm 1)

Fictatious

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Awkward Sliding Around with animations.
« Reply #2 on: March 23, 2021, 02:12:57 AM »
Hi.
i can see on 1 image that on the action 'Get Axis Vector' it's Multiplier is 4 instead of 1
also Get Axis Vector should be above Controllers simple move.

not sure if that is the reason tho.

But i would suggest to split this up in sperate fsm's

fsm 1

State 1 :
Get Axis Vector
Controller Simple Move, set speed as a variable.
Set Animator Float

Fsm 2
State 1 :
Fsm Float Compare (Ecosystem)

State 2 :
Fsm Float Compare (Ecosystem)
Smoot Look At Direction

Fsm 3

State 1 :
Get Button Down
Set Fsm Float (Set Speed on fsm 1)

State 2 :
Get Button Up
Set Fsm Float (Set Speed on fsm 1)

Sorry for the late response had something come up over the weekend and today was busy. I tried the idea of separating them into different SFM's but simply went with the animator going into it's own fsm for walking but it's producing basically the same exact results. Coming back to try out your exact soluition I don't understand how the eco system package works exactly so as for what you're suggesting on how to use it's kind of out of my field.

Fictatious

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Awkward Sliding Around with animations.
« Reply #3 on: March 23, 2021, 03:14:20 AM »
To go expand further on this subject after some experimentation and trying different methods apparently simple character controller + Character controller component is what's causing some disagreements. when I use get axis vector + get vector xyz + a simple rigidbody component as the base for my character that seems to work perfectly.

Edit: If anyone has a theory as to why that is the case I would love to hear it in order to avoid future complications that might arise.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Awkward Sliding Around with animations.
« Reply #4 on: March 23, 2021, 08:51:59 AM »
Hi.
You should download and install Ecosystem, then search for the action.

Ecosystem holds a lot of custom actions made by the community.
you should always look if certain actions exists (also in the build in actions) before you would use Get/Set Properties actions.

Yes you need a rigidbody at the root of your character, it handles physics and colliders.

the character controllers are mostly good for quick prototyping.
else i suggest to build your own by using set velocity etc.

Fictatious

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Awkward Sliding Around with animations.
« Reply #5 on: March 23, 2021, 09:34:03 AM »
Hi.
You should download and install Ecosystem, then search for the action.

Ecosystem holds a lot of custom actions made by the community.
you should always look if certain actions exists (also in the build in actions) before you would use Get/Set Properties actions.

Yes you need a rigidbody at the root of your character, it handles physics and colliders.

the character controllers are mostly good for quick prototyping.
else i suggest to build your own by using set velocity etc.

good to know I'll try this all out thanks!