Page 1 of 1

Creating a CompoundBody from a list of ConvexHulls?

Posted: Mon Jan 06, 2014 2:08 pm
by aCallum
Hi again,

I'm trying to create a ConvexHull for a series of models that an object can be created from.

In my current implementaton the full object contains a CompoundBody created from some basic BoxShapes. How can replace these basic boxes with a list of ConvexHulls and still pass them into the CompoundBody constructor?

I've tried to search but half the terms keep getting removed from my query, gah!

Cheers

Re: Creating a CompoundBody from a list of ConvexHulls?

Posted: Mon Jan 06, 2014 6:27 pm
by Norbo
ConvexHull is a prefab entity type that exists for convenience and legacy reasons, like the Box. ConvexHullShapes, the shape used by the ConvexHull, can be put into compounds in the same way as BoxShapes, the shape used by the Box.

The EntityConstructionDemo in the BEPUphysicsDemos shows some examples involving convex hull shapes and compound shapes.

Re: Creating a CompoundBody from a list of ConvexHulls?

Posted: Mon Jan 06, 2014 11:32 pm
by aCallum
Thanks for pointing me in the direction of that demo, must have missed it! just what I need!