Display Meshes larger then Physical Meshes

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Primalfreeze
Posts: 2
Joined: Wed Sep 16, 2009 5:01 am

Display Meshes larger then Physical Meshes

Post by Primalfreeze »

Hey guys,

I'm new to the system and I'm loving it so far.

I do have an odd situation though, I'm using XNA and am using the Entity Renderer object set as a debug renderer for now.

Now my objects, created in 3dsmax are 24x24 units (cm) and I have 8 in a grid each spaced 24 units apart so they all line up perfectly.

Now, I have them creating entities of the same size when they're created and they move together etc.

But when rendered (in wireframe for visibility), the Entity renders are slightly bigger. Not by a uniform amount across different sized objects either (as in a smaller object has the same 'padding').

Is this due to entities having a padding size or something?

Or does anyone have any other ideas as to what is happening?

Thanks.

Primal.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Display Meshes larger then Physical Meshes

Post by Norbo »

If I'm understanding what you're seeing correctly, yes, entities do have something called a collision margin which is taken into account in the entity renderer.

You can read more information about how it works (and why it's there) in this thread:
http://bepu-games.com/forums/viewtopic.php?f=4&t=409
Primalfreeze
Posts: 2
Joined: Wed Sep 16, 2009 5:01 am

Re: Display Meshes larger then Physical Meshes

Post by Primalfreeze »

Ahah! Thanks heaps.

I'll check that thread out. I did search but didn't know quite what to look for.
Post Reply