[SOLVED] ConvexHull position incorrect
Posted: Mon Dec 02, 2013 11:34 pm
Hi Norbo, I got one of your favorite 
This is a modified scene from Bepu demos. It has three entities:
As you can see there is a problem with "A" entity - there's a slight gap between "A" and "B" (blue arrow) - they're supposed to be placed next to each other - side by side.
"B" and "C" are boxes and "A" is a convexhull, created from vertices imported from external source - just Vector3s. All them have positions from external source, set after creation. I'm using bepu model drawer, no other changes were made.
"A" is offseted by about .129 units up and down. I tried to offset it's position by convexhull computedcenter - no luck.
I inspected "A" entity after adding to Space and it's position is set to what I want - so it looks like model drawer is messing here?
Thanks,
S.

This is a modified scene from Bepu demos. It has three entities:
As you can see there is a problem with "A" entity - there's a slight gap between "A" and "B" (blue arrow) - they're supposed to be placed next to each other - side by side.
"B" and "C" are boxes and "A" is a convexhull, created from vertices imported from external source - just Vector3s. All them have positions from external source, set after creation. I'm using bepu model drawer, no other changes were made.
"A" is offseted by about .129 units up and down. I tried to offset it's position by convexhull computedcenter - no luck.
I inspected "A" entity after adding to Space and it's position is set to what I want - so it looks like model drawer is messing here?
Thanks,
S.