Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Set direction or velocity of chunks in destructible mesh

Hi all,

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, alt text

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.

Product Version: Not Selected
capture.png (302.6 kB)
more ▼

asked Jan 30 '15 at 11:11 PM in Using UE4

avatar image

444 99 84 108

avatar image Slavq Jan 31 '15 at 10:01 AM

I'm also interested. Maybe some 'force field' collider that gets all physics actors and add impulse to them in one direction?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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.



more ▼

answered Feb 02 '15 at 03:42 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 888 103 878

avatar image ShrewGlue Apr 21 '15 at 12:53 PM

You're most recent video, (and the forum post that's linked to it) is exactly what I needed!


avatar image Tim Hobson ♦♦ STAFF Apr 21 '15 at 02:00 PM

as an aside. That demonstration is using a radial force actor to push the pieces out of the way. It's not direct control over the direction of the chunks. The Velocity can be controlled for the chunks with Max Chunk Speed. This will only work to keep chunks from going too fast. it does not set a value for the speed they will always travel at.

Glad you're keeping an eye on those vids. Feel free to throw some suggestions in the forum thread if you wish. I want to start doing more simple setups for DMs over the next month or so when I get more free time.

avatar image Burnrate Nov 24 '17 at 10:45 PM

Hi Tim, Do you have any info about applying force to a single piece of a destructible mesh?

I was trying to do this via an overlap but when I apply force to a single piece it moves the entire fractured mesh.

I was using GetWorld()->OverlapMultiByObjectType(...);

It would return all the overlapping pieces with the correct number of pieces. The actor name was correct but for each piece it gave the same component name:

(Component = 0x00000210b55ec100 (Name=0x00000210b82cddc8 "DestructibleComponent0"))

If I applied force to only one component it would move all of the pieces, Even those not overlapping. Is there a way to get the specific bone name from the component?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Tim Hobson made a video about this here: https://www.youtube.com/watch?v=uN1v8dD1gdA Check out the forum post in the videos' description for more info.

more ▼

answered Apr 21 '15 at 12:53 PM

avatar image

444 99 84 108

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question