Set direction or velocity of chunks in destructible mesh

Hi ShrewGlue and Slavq,

I’ll cover setting velocity and direction towards the end.

This shouldn’t be too hard to setup.

Some of this will require you to set it up in your weapon if you’re using that a method to destroy the DM or in your Level BP if you don’t want to use a player weapon necessarily.

Regardless, the setup is similar. If you want destroy a wall piece that is blocking a corridor or something in that style, you would want to use radial force Actors to push your assets in certain directions.

For instance if I’m wanting the chunks to block back away from the player I would set a radial force actor on the front side towards the character so that when it goes off it can push the pieces away.

At this point, In my details panel for my DM I would also adjust the large chunk threshold value so that pieces that are smaller or below this threshold would not block the player from passing. Just tweak the value here until you get a result you like. (You can also see and example I’ve setup up in my forums post with Large Chunk Threshold: [TUTORIALS] Photons Be Free: Mini-tutorials and other curiosities - Community & Industry Discussion - Epic Developer Community Forums)

Ideally using the Fracture Impulse Scale located in your DM’s settings would be the best option to get pieces to separate, but in an enclosed corridor if the pieces can’t push out away from each other this will not be really effective.

While there are options to control the direction of a DM this is more project specific and requires you to change some the axis locks in your project settings. This is more for 2.5d, top down, side scrolling type games where you don’t need three dimensions.

The best use here is to setup a radial impulse that fires to apply damage and “push” the pieces in the relative direction that you would like.

Thanks!

Tim