Download

Creating convex hull from multiple objects

Is it possible to create one convex hull mesh from multiple objects?

I want to place small objects and name it ‘town’.

and when player enters the town I want to do something. (UI popup, Trigger AI, etc)

But AABB is too rough and not accurate.

And I want the trigger volume automatically generated. (from all children)

So I’m thinking about create convex hull from objects using it as trigger volume.

Here’s my question.

  1. Is it possible to create one convex hull mesh from multiple objects?

  2. Is there better way to implement this?

Thanks.

You could just actor merge all the objects together, generate a collision primitive on the merged actor, export it with collision, Dump the actor, keep the collision…
It’s not exactly “fast”, but it is a possibility…