Gravity question.

RedSkull

27-03-2006 13:37:23

Hi.

I've noticed that the objects fall very slowly. I've tried to change the gravity but I can't modify the speed of falling. Also I've
used LinearVelocity in -Y Axis and Also and the objects fall with greater speed. The problem is that on the land "they shake".

Which is the mechanism to be able to change the speed of fall of correct form?

Can be related the size/scale of the objects to this? I'm using the same code of the tutorials, the only difference is
the size or it climbs of the objects with respect to which I use (imported from Max).

Thx.

betajaen

27-03-2006 14:33:26

The default gravity is just Earth's gravity ~-9.8 M/s.

You can change it with mScene->hasGravity(Vector3(0,-20,0)), or you can do your linear force method.

To stop the shaking, I'd increase the linear and angular dampening a bit, then reduce it down once the object has settled.

You also increase the density of the object, so it doesn't shake. i.e. something large and heavy wouldn't shake once it falls is because it is heavy, unless it's very light.

Hope this helps!