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"

set actor rotation is laggy when replicate movement is activated

i don't know why this is happening D: https://youtu.be/l9eeG2eWjBU

Product Version: UE 4.20
Tags:
more ▼

asked Jul 25 '18 at 09:59 AM in Blueprint Scripting

avatar image

Atornity
229 3 13 13

avatar image Atornity Jul 25 '18 at 08:41 PM

still need help with this D:

avatar image mightyenigma Aug 14 '18 at 04:15 PM

Looks like you're using a Character Pawn, which replicates rotation and location changes automagically (and really smoothly!) without RPCs such as "ServerMoveThis" or "MulticastRotateThat" being involved.Try removing any RPCs that alter location or rotation, but keep Replicate Movement on, and see if that improves things.

avatar image Atornity Aug 17 '18 at 04:04 PM

I only use the set actor rotation node to do the rotation. I want the rotation to be smooth on the client. currently, the client gets the rotation from the server because it's replicating movement and I don't know how to fix it D:

avatar image Snufx Feb 07 '19 at 02:14 PM

Hello, im using 4.21 and having the exact same problem, have you found the solution ?

avatar image Atornity Mar 09 '19 at 05:36 AM

https://imgur.com/a/6vTzdx5 this works for me

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

2 answers: sort voted first

https://imgur.com/a/6vTzdx5 this fixed the my issue, no idea how.

more ▼

answered Mar 09 '19 at 05:43 AM

avatar image

Atornity
229 3 13 13

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

For Replicated Character pawns, don't use SetActorRotation; instead use Set Control Rotation, as this feeds into the Character class' network smoothing and prediction algorithms.

more ▼

answered Feb 07 '19 at 04:24 PM

avatar image

mightyenigma
3.8k 18 20 20

avatar image Atornity Feb 14 '19 at 05:05 PM

I want the character rotation to be separate from control rotation. Control rotation is the rotation of the camera, I don't want the actor rotation to be the same as the camera if that makes sense

avatar image mightyenigma Feb 14 '19 at 06:43 PM

Hmm. I'm not sure how to separate those two, but I know character or spring arm has an option of whether to use control rotation. I wonder if it would work to uncheck the checkbox for use control rotation in the character or spring arm, and then use blueprint GetControlRotation to set it. Maybe the replication goes both ways and sets control rotation too? I guess we'd have to explore the C++ code to know for sure :\

(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