Simple question

Empaler

26-10-2010 16:36:10

How can i change the gravity applied to a body ? Is there a simple way?
Or change the gravity of the whole world ?

Thanks

Empaler

26-10-2010 17:00:01

Hmmm ok im able to chance gravity now but didnt solve my problem.
I have a playercontrollerentity and i want him to move around in a map. The problem is that there are some ramps with some inclination and the player doesnt "climb" them...
Any ideas how to solve this ?

Thanks

Sjinta

29-10-2010 12:22:48

set a stairfactor with playercontroller.

will look something like this: mPlayer = new OgreNewt::PlayerController(playerBody, 0.4 /*this is the stairFactor*/);
this should be in the create scene part where you first create your player.
this will bring other problems with jumping, you can find my workaround in the [solution] jumping with playercontroller topic.

Empaler

03-11-2010 17:50:00

Thank you...
For now im not using jumps so ill try it :D