#1: bad idea, a lot of contacts will get generated for no useful purposeOriginally Posted by NecroDOME
#2: would probably work but if you set matrix to keep Z on zero, newton will re-build some internal structs to place the body into proper internal scene graph place, which can be slow with a lot of bodies.
I would suggest writing a specialized joint that keeps bodies on ground level, or you can check out this project, they likely do what you need to keep bodies at "ground":
http://www.pyroplay.de/ppisaac.htmlPPIsaac is an OOP wrapper of the Newton Game Dynamics engine and is especially designed for 2D game environments.
However for starters, a upvector joint (so bodies dont fall down) with a ground level & gravity can get you started for 2d use in no time.
Bookmarks