Adjust the size of one Unit?

h3x0g3n

16-05-2006 21:00:17

Can the size of the units be adjusted?

By default the size of one unit is equivalent to 1 meter. Stupidly, my model is 10 units high but should be equivalent to 0.5 meters. Changing the model's size leads to graphical problems. So I have to change the size of one unit to be equivalent to 0.05 meters to get an realistic physical environment.

Arkasha

16-05-2006 23:11:14

I am kinddof a newb with OgreNewt, but can't you use the setScale method on the Entity to ( 0.1 , 0.1, 0.1 ) and create a body that fills this scaled down model?

I am sorry if this doesn't help...

h3x0g3n

17-05-2006 20:14:34

Changing the model's size leads to graphical problems.

Anyway, I'm not sure but I have found out that changing size is impossible. But by adjusting gravity to 196,2units/s² (9,81*20) it should be possible to gain realistic physics.

Is my assumption right?

walaber

17-05-2006 21:28:15

yeah. just make your own gravity callback, using your own gravity constant, and you should be fine.

lance

18-05-2006 04:30:56

But I found change the gravity could make newton unstable. In my previous version my scene is made by 1 unit = 1 cm, so it is 100 times larger than what it should be, the gravity is 100 times bigger and the mass is 1000000 times bigger... Seems newton could not handle this situation correctly.