How to fall quicker?

majc

08-09-2006 19:54:18

When i jump the camera falls slow for my taste i tryed to raise camera mass and gravity but it seems that dont work.
What i do to change the speed of the fall? What value should i raise or lower?
I thought if i raise mass the body it will fall quicker am i wrong?

bibiteinfo

08-09-2006 20:19:26

You're wrong. Physicly, 2 objects of same shape, with different mass will fall at the same speed if they are in the same gravity. So change you're gravity, not the camera mass, it's useless.

majc

08-09-2006 20:25:05

But i changed gravity and did nothing :(
I might be changing gravity wrong.
I did this in player input function:

DarkFuture->cam_body->setForce(Vector3(0,-200000,0));

Hansel

11-09-2006 17:45:19

You have to setup your custom standardforcecallback (recommended) or you can also redefine the existing one in OgreNewt_Body.cpp inside ogrenewt (just look for Body::standardForceCallback and change the gravity value) :wink:


To define a custom standarforcecallback just look at my code http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=2110 It's easy to understand ;)