x

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"

Destructible Mesh Chunk Replication

So I have a simple crate that I have created a destructible mesh (DM) from.

This DM is part of an actor blueprint (BP) that fractures the DM when it takes damage. The actor BP containing the DM is setup to replicate.

The physics of the DM replicate just fine across all clients and the server, including the actual fracture event which "explodes" the DM.

The problem is that the chunks generated when the DM fractures are not replicated, they're simulated on each client/server and therefore the result is that the chunks from the fracture end up in different places on every single client/server, the end result of which is incorrect collision detection on all clients.

The way it's setup is that the player character triggers a damage event that will replicate and only run on the server. The DM BP detects when it takes damage, it then runs a Multicast event, this Multicast events executes on all clients and the server, this is were damage is finally actually applied to the DM which causes it to fracture.

I assume since the Apply Damage event is triggered on each client individually, this is what causes the actual fracture of the mesh to be simulated individually on each client, and therefore the inconsistent result.

So the question is: is there a way to replicate the fracture effect of the DM across all clients so that they all see the exact same fracture?

Or simply, is there a way to run the Apply Damage event on only the server and have the effects of the fracture event replicate to all clients?

Product Version: UE 4.15
Tags:
more ▼

asked Mar 24 '17 at 07:21 PM in Blueprint Scripting

avatar image

tobbr
3 1 2 2

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

1 answer: sort voted first

Hello due to the way UE4 handles debris is on endpoint only, the server will replicate the fracture points and then the endpoints will create the debris independently, there is no way around this for standard debris, unless there is a rewrite of the destructible engine, as all the debris would cripple the network,

just in case you are interested I think this might help sort your issue for the most part ;) https://www.unrealengine.com/marketplace/dent-destructible-environment

more ▼

answered Apr 25 '17 at 11:22 PM

avatar image

Purple_Dolphin
51 1 5 7

avatar image tobbr Apr 26 '17 at 05:20 PM

Yeah so it's not possible, that's a shame. That works as an answer to my question so if you want to post that comment as an answer instead, I'll accept it.

(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