Collide and Overlap actors

Hi there,

I have a maze of spikey ball things (instanced static mesh). Their fairly small and the player can collide and step up on them (if they have a deathwish). When the player is touching one of these, I want to cause periodic damage. Like a pain causing volume. But I can’t GetOverlappingActors, because I want them to collide. As the maze is complex it would be very cumbersome to generate a reasonable approximation of it for using Pain Causing volumes. And as each ball is not an actor I can’t add an additional collider to detect overlaps.

So ideally I’d like to be able to collide with a mesh and also generate overlap events, or detect when an actor is no longer touching.

All suggestions much appreciated.

Thanks

So the balls will most certainly need to be pawns with a sphere collision component.

From there you should be able to detect collisions with static meshes. Those static mesh should have collisions set.

For the pain causing volumes, instanced static mesh are really fast which is good, I’m also sure that volumes are really fast to produce. As long as there are no static meshes to those volumes they’re really light and you can have thousands easily. So you’d have a pass on Begin Play which would place those pain causing volumes where your static meshes have been instantiated.