BetterCharacterControl How to set the landing speed after the jump

The javadoc BetterCharacterControl Class does not find a method for post-jump landing speed

You’re trying to make make the falling process take longer??

I’m at work and can’t mess with it but perhaps you can tweak the gravity value.
Code from → Hello Collision


    // You can change the gravity of individual physics objects before or after
    //they are added to the PhysicsSpace, but it must be set before MOVING the
    //physics location.
    player.setGravity(new Vector3f(0,-30f,0));
    player.setPhysicsLocation(new Vector3f(0, 10, 0));
Additional reading

For Planet Earth: new Vector3f(0f,-9.81f,0f)

Physics: Gravity, Collisions, Forces

You can change the gravity of individual physics objects after they were added to the PhysicsSpace. Gravity is a vector pointing from this Spatial towards the source of gravity. The longer the vector, the stronger is gravity.
If gravity is the same absolute direction for all objects (e.g. on a planet surface), set this vector globally on the PhysicsSpace object and not individually.
If the center of gravity is relative (e.g. towards a black hole) then setGravity() on each Spatial to constantly adjust the gravity vectors at each tick of their update() loops.

1 Like

BetterCharacterControl is very different from CharacterControl.
If you use CharacterControl, then everything will be fine.

Using BetterCharacterControl characters will stick to the wall when encountering slopes characters will fly high

Maybe I should try minie

oh dear :face_with_monocle:

and ohh ok didn’t know it worked for just regular CharacterControl.

may as well give er a shot!

1 Like