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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to implement an interpolate to prevent snapping

Hey guys,

I currently have this setup for a camera look on a vehicle with a mounted turret. Everything functions perfetly how I want it to, but when I rotate the camera (and therefore the turret) the turret snaps to its new position. I'm wondering where I can implement an interpolation node to smooth out the transition of the turret from its starting location to wherever the camera rotates.

alt text

Product Version: UE 4.19
cameralook.png (390.2 kB)
more ▼

asked Aug 02 '18 at 10:01 PM in Blueprint Scripting

avatar image

6 1 2 3

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

1 answer: sort voted first

I'll explain in very broad strokes here:

  1. Your camera would need to define something like DesiredDirection variable. (maybe on your vehicle)

  2. Your vehicle should have something like MaxTurretRotationSpeed. (This will be per second)

  3. Every frame (TickEvent) in your vehicle you should rotate your turret by MaxTurretRotationSpeed*DeltaTime towards your DesiredDirection until you reach it.

Happy coding :)

more ▼

answered Aug 02 '18 at 10:32 PM

avatar image

1.3k 6 5 9

avatar image AverageAce Aug 02 '18 at 11:50 PM

Thanks! I'm pretty new to blueprinting, but I'll give this a shot and see if I can figure it out!

(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