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"

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. 

Animate camera between 4 rotate toggles

Hello, As an absolute beginner in the Unreal Engine I've encountered a problem. I would like the single camera to have a smooth transition between each toggle around a pivot point. I've been attempting different ways I've seen on these forums but I haven't found the solution as of yet. Any help would be appreciated. Thank you.

alt text

Product Version: UE 4.19
Tags:
anicam.png (342.0 kB)
anicam.png (342.0 kB)
more ▼

asked May 21 '18 at 06:11 PM in Using UE4

avatar image

danomiteeee
1 1 1

avatar image Everynone May 21 '18 at 08:33 PM

How is this supposed to work? Do you want the camera to rotate only for as long you hold the button down and come to a resting stop one it's reached 90 degrees?

Or do you want to tap the buttons once and let the interpolation take you there through the full 90?

avatar image danomiteeee May 21 '18 at 11:05 PM

The blueprint in itself is functioning how I want it to. A camera attached to a pivot point in which controls the camera to turn 90 degrees each time the player presses q or e. Alike that to an old ps1 game pressing r1 and l1 to turn the camera 90 degrees but I cant figure out how to make a smooth "animation" to go between the rotations each time one of the buttons are pressed.

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

1 answer: sort voted first

each time the player presses q or e

That's what I found confusing. The way you hooked it up looks as if you only wanted the rotation to happen while the user is holding the button down.

You will need to split it into 2 logical elements:

  • setting desired rotation

  • tick interpolation

alt text


https://gyazo.com/e409e6fb1fdf3d01b06b3e6d95ed4e55


This can be improved by Gating the Tick and preventing the player from spamming the key.

Hope I understood you correctly.

capture.png (216.0 kB)
more ▼

answered May 22 '18 at 07:12 AM

avatar image

Everynone
14.6k 76 25 61

(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