Set direction or velocity of chunks in destructible mesh
When I have a destructible mesh in a wall, and it explodes, many of the pieces go up and down, this in turn, does not make the chunks get out of the hole in the wall, where the destructible mesh is.
To fix this, I need to send all of the chunks out of the hole, instead of up and down.
Here is an image, showing what I mean,
The red arrows represent the direction where the chunks are currently going, and the green is where I WANT them to go.
How do I set the direction/ velocity of the chunks, when the destructible mesh explodes?
EDIT: Still no luck. I have already been applying radial damage to it but that does not help. If you want to see my set up there is a link to it in a comment below.
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: https://forums.unrealengine.com/showthread.php?56777-Photons-Be-Free-Mini-tutorials-and-other-curiosities&p=210338&viewfull=1#post210338)
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.
answered Feb 02 '15 at 03:42 PM
Tim Hobson ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here