3d Character Movement Help

Godot Version

4.2.2

Question

I’m relatively new to godot and coding. I’m currently making a mini ski game with basic 3d character controls. However, the controls are inversed from what I have on the input map and the character won’t jump. Any help would be greatly appreciated!

Which controls are inverted? Because of Godot’s coordinate system some movement can seem counterintuitive, but whenever movement seems “backwards” you can just change the math in a velocity assignment. For example, if you’re moving backward when you want to move forward (which seems likely given your code), use this:

velocity.z = -direction.z * SPEED

~~As for your jumping problem, is_on_floor() needs to know where UP is. For that, change your move_and_slide() call to read:

move_and_slide(velocity, Vector3.UP)~~

Edit: I don’t think that’s accurate. I’m gonna see if I can find a proper solution to that second problem.

Are the controls really inversed or are your models backwards?