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"

Replicated projectile movement components are choppy

I'm working on a multiplayer vehicle game with projectiles. Networked vehicles are extremely smooth. Replicated projectile movement components are not so smooth. How do I make my networked projectiles just as smooth?

Here's a video comparing multiplayer and single player side by side. It also includes screenshots of my replication settings and projectile component.


  1. When in single player mode, both vehicle physics and projectile movement are very smooth

  2. When networked, replicated vehicle movement is perfect (the vehicle replication in the engine is fantastic). The projectile movement components are choppy when replicated.

  3. Physics substepping is on

I'm wondering what I can do to smooth out my replicated projectiles. I'm happy to implement some kind of client-side interpolation or explore other techniques, but I'm just looking for suggestions with authority! Any help would be appreciated. Thanks!

Product Version: Not Selected
more ▼

asked Aug 01 '14 at 03:40 PM in Blueprint Scripting

avatar image

537 22 32 370

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

1 answer: sort voted first

My workaround is a poor man's client-side prediction implementation. It doesn't include rewind/replay, but because the ProjectileMovement components are so predictable it's fairly reliable. I suspect there will still be issues if the ProjectileMovement components interact with physics components, the latter of which could potentially be in different places at the same time on the server and client (depending on their replication behavior). This could result in the client's projectile deviating from the server's. However, I can't say for sure since I haven't tested this case nor have I dug into the engine code. That is on my long list of things I don't know that I would like to know.

The client-side implementation for Projectiles looks like this, in short:

  1. Replicate ProjectileMovement components, but set Replicates Movement to false

  2. Instantiate, fire, and perform projectile collision detection on the Server with authority

  3. Simultaneously instantiate, fire, and perform projectile collision detection with a replicated multicast. This will create a projectiles on client machines and launch them when the server launches its instance.

Here are a couple of screenshots detailing my implementation.

Projectile replication settings


Initial fire event (I have a ProjectileInterface so this is an event called by the launching mechanism on whatever Projectile it's holding, typically it would just be a function call)


Execute server and multicast launches simultaneously (if using client-side prediction)


Server and multicast events


This isn't really client-side prediction as much as it is client-side do-its-own-thing-but-depend-on-the-server-for-hits, but it certainly smooths out the illusion, and thanks to the predictability of the ProjectileMovement component I haven't noticed any deviation yet.

Special thanks to HateDread for the idea.

I'm marking this "correct" for now, but it's really just "better than nothing" until I can show that the projectiles will stay in sync regardless of environment, or someone less lazy than I shows up with a rewind/replay implementation.

more ▼

answered Aug 07 '14 at 02:48 PM

avatar image

537 22 32 370

avatar image MaxiHori Apr 12 '16 at 03:49 PM

is this still the reccomended way?

avatar image piinecone Apr 12 '16 at 04:07 PM

I actually wrote a bunch of code to make this feel better. I'm going to publish a blog post about it soon - I'll link to it from here when I do.

avatar image Formic May 22 '16 at 07:10 PM

Any luck on posting that blog post? :]

avatar image erebel55 Oct 10 '16 at 09:28 PM

I'm also interested in this blog post

avatar image BioeJD Feb 09 '17 at 07:04 AM

I haven't checked your images yet, but it sounds exactly like the initial solution I'm going with. I'd really love to see a blog post on improvements to this. It'd go a long way in my learning.

(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