Hello all. I'm new in BEPUphysics, but I like it Now, my problem.
When you look at attachment, you can see one "small" box front of three boxes. But this is just optical illusion (and my problem). In fact, all boxes are same size and small one is physically behind those three boxes.
It is important in what order objects are rendered? I assume that not. I used FBX models from Demos. One difference between demo end my application is draw method. My entity model isn't DrawableGameComponent. I call EntityModel.Draw method in Game.Draw for each EntityModel in my private List<EntityModel>.
I hope you understand my problem... sorry for my english.
Regards.
Michal Dawn
I still work on it. I found that it is related with SpriteBatch.Begin() and SpriteBatch.End(). I use those methods for drawing text like debug info... But when I delete those two methods from my Game.Draw() method problem solved.... But why? I guess that this is not BEPU engine problem and probably it is beginner question. But your replies are really welcome. Cheers
The SpriteBatch does indeed change some things. Most noticeably, it disables regular depth testing. Without that, the order of drawing objects matters.
But you are correct that this isn't related to the engine itself, and just for clarity, I should note that the BEPUphysicsDrawer is just a debugging and testing system. It's not a good choice for a primary renderer in a game.