Hey guys, I have one problem here.
Here is my case: I have a table in house, then I place a thing on the table in the middle and it falls through it. And even the thing falls through the floor.
Both, the table and thing are rigid bodys.
Sometimes the catalogue on the table “disappear” and it’s really annoying.
Hey! First off: I like that screenshot because I can finally see the art style your game is going
So you have two options:
Don’t make it a physics body. Ask yourself if the user should ever be able to hit it away with something or some other physics effects (Note: You can also have it not physics until someone is dropping it from his/her hand, e.g).
A) Turn on Physics Debug Mode which might help us in debugging (I have this pass through problem when objects are to fast, even though I already tried to mess with ccdMotionThreshold).
B) Don’t place it in the “middle” of the table, as then it has already passed the table collision. Place it so it’s certainly on top. If I’m placing npcs I always put them a few centimeters above ground and they just drop down. that way I am sure they are on top of the floor
This is a genius idea. I don’t know why I didn’t it.
I thought so placing it on top in the middle of the table, but I decribed it bad. Changing position didn’t help too. Placing it right on the top or few centimeters/milimeters above ground and still fell through.
Important Takeaway definitely is: As a GameDev you have to fake many things. Even when using physics for such a book would be more correct, most of the time you don’t need it and can hence save performance and inconsistent states.
But note that in 1) the book might still fall through the floor
I don’t think OpenGL can even render non-triangular meshes (with the exception of lines and points, if those modes are set) without it being corrupted. If you render a mesh that was non-triangular in Blender I’d think that either the exporter or importer is triangulating it.
That’s exacly my code. I copied the code from the table and did only rename so you can be sure the table is done the same.
I never use triangulate modifier in Blender. And I haven’t any problems before.
I’m now recording a video how it falls. I will upload it in few minutes.
Set the translation before adding the RBC and set it .1 above the table. It looks lie you are to close to the table top setting it 1.005. Notice its vibrating.