How to properly set up a Dynamic physics type character object?

I’ve tried to use this physics setting multiple times, and it’s always given me problems, so perhaps I’m using it wrong? I was wondering if someone who knows how to use it properly can help me out with this.

So my first issue is trying to implement a jump. The actual movement upwards of the jump works fine, its when you try to use any other movement in the air. Once you try to move in any other direction, the player stops falling and instead goes straight forward. Is there a fix for this? I’m using force for the jump and lin vel for the movement.

If I recall correctly, linear velocity overrides all forces, even gravity; hence the sliding!

That’s why the character doesn’t fall down while you press the move keys.

You need to re-add the gravity to those calculations.

As far as I know, there is no way to do that simply, with only logic nodes.

I highly recommend doing this via a script.

Hmmm… Now I’m really curious to know how people solve this.

I could try to understand it via scripting, though I barely know my way around blender python.

import bge
cont = bge.logic.getCurrentController()
own = cont.owner
max = 5

if cont.sensors['Forward_Key'].positive:
    if own.localLinearVelocity.x< max:
         #push forward
   #don't slide sideways
elif cont.sensors['Back_Key'].positive:
    if own.localLinearVelocity.x> -max:
    #slow down
    if own.localLinearVelocity.magnitude<.05:
keyboard sensor or joystick etc named 'Forward_Key'-------------this python
keyboard sensor or joystick etc named 'Back_Key'----------------/