collision objects slowly fall through one another??

lance

25-04-2006 05:08:18

I made a box collision around the bed and the ground is a tree collision. Sometimes the bed would slow sink down... The mass
of the bed is 983933578 and the inertia is also very huge. I added a const force (0,-1000,0) to simulate the gravity. I wonder if I did something wrong. If I set a smaller force for gravity then they just fall way too slow...
How can I fix this fall through problem? Many thanks!

BergBoy

25-04-2006 06:15:15

Why is the mass and force so big? I would think that might be whats putting it through the floor but thats just a guess...

walaber

25-04-2006 17:16:52

you are using a scale that is VERY hard on Newton. obviously your objects are very big (for example is the bed several hundres units long?)... so you need huge masses and huge gravity to make it work.

I would suggest using realistic units. for all of my projects, I use 1 unit = 1 meter = 1 kg, and this scale works fantastic with Newton.

the easy way to do this is to rescale all of your art objects to that scale. however if you don't want to do that, you can use a "conversion factor" when going inbetween the physics and the graphics. you will have to make your own TransformCallback though, to take the scale factor into account.

praetor

25-04-2006 18:01:12

I'm totally gonna vote that your HUGE scale is stomping all over Newton.