Creating a CompoundBody from a list of ConvexHulls?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
aCallum
Posts: 13
Joined: Sat Jan 04, 2014 4:31 pm

Creating a CompoundBody from a list of ConvexHulls?

Post 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
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Creating a CompoundBody from a list of ConvexHulls?

Post 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.
aCallum
Posts: 13
Joined: Sat Jan 04, 2014 4:31 pm

Re: Creating a CompoundBody from a list of ConvexHulls?

Post by aCallum »

Thanks for pointing me in the direction of that demo, must have missed it! just what I need!
Post Reply