Relationship between models and entities

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
jbosch
Posts: 43
Joined: Sat May 29, 2010 4:42 pm
Contact:

Relationship between models and entities

Post by jbosch »

Hi,

I'm doing my first tests with bepu engine, and the main problem I'm experiencing its to stablish a relationship between the entites and the models. My entities behave in a strange way. I think it is because of the entities are not well scaled with the models. Is there an easy way to do this? Have the entities any way to draw themselves, or its wireframe, for testing purposes?

See that example, I was trying to launch a ball to a bowl... http://www.verticaling.com/Bowling.rar

Thanks!
Jesús Bosch
XNA BLOG: http://geeks.ms/blogs/jbosch
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Relationship between models and entities

Post by Norbo »

The BEPUphysicsDemos project includes a BEPUphysicsDrawer library project which can be used as a debug renderer. It is used in .dll form in the RagdollDemo as well.

The attached version of the project incorporates the drawer library in a minimal way. There's an InstancedModelDrawer, isWireframe property, line/constraint drawer, and some other things that aren't shown (but can be easily introduced).
Attachments
Bowling with drawer.zip
(6.48 MiB) Downloaded 254 times
jbosch
Posts: 43
Joined: Sat May 29, 2010 4:42 pm
Contact:

Re: Relationship between models and entities

Post by jbosch »

Many thanks!!! You have been very helpful. Now I can test everything much better :-)
Jesús Bosch
XNA BLOG: http://geeks.ms/blogs/jbosch
jbosch
Posts: 43
Joined: Sat May 29, 2010 4:42 pm
Contact:

Re: Relationship between models and entities

Post by jbosch »

Norbo wrote:The BEPUphysicsDemos project includes a BEPUphysicsDrawer library project which can be used as a debug renderer. It is used in .dll form in the RagdollDemo as well.

The attached version of the project incorporates the drawer library in a minimal way. There's an InstancedModelDrawer, isWireframe property, line/constraint drawer, and some other things that aren't shown (but can be easily introduced).
This drawer DLL can be download anywhere in this web? should it work for windows phone 7 CTP?

Thanks
Jesús Bosch
XNA BLOG: http://geeks.ms/blogs/jbosch
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Relationship between models and entities

Post by Norbo »

There is no drawer .dll-specific download on the website, but a precompiled .dll is used in the RagdollDemo project (and it can be compiled from the BEPUphysicsDemos project).

The WP7 demo source (downloadable on http://www.bepu-games.com/BEPUphysics/downloads.htm) has a modified drawer in it thats works on the phone.
Post Reply