How can I make a collision primitive stop rotating?

kjs335

28-01-2006 09:42:17

Hi there, I'm using a box as a hitbox of a model.
The problem I'm getting is when the character falls, the box rotates and it looks very strange with the model. How can I make the box not to rotate at all?
I got another problem when using DotScene, when I move a player model in the level by using addForce func, the model shakes. It's very noticable at close range. Why does it happen and how can I solve it?

haffax

28-01-2006 16:29:44

Don't use a box for the player body, use an ellipsoid instead. Also use an up-vector joint on it to keep it upright and, very important, make sure you use proper inertia. Review your favorite physics textbook for proper values.
For a homogenous solid ellipsoid set inertia to (1/6)L²M.

AntonyCoder

31-03-2006 18:58:32

I too had the shaking problem badly, I tracked it to down to BasicFrameListener.cpp. It uses some form of frame limiting to supposedly sync the api at a constant rate so it may call mWorld->Update() more than once per frame. As soon as I commented out the code and rebuilt ogrenewt and just called mWorld->Update() once per frame it was shake free.