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"

Smoother Turn/Look Rate on a Gamepad

Hi there, thanks for reading my question!

What I'm trying to accomplish:

(On a GamePad) Gradually increase the InputAxis TurnRate & LookUpRate value over a set amount of time (Ex: 1 second). This would simulate an axis value smoothing/ramping effect while looking around when using a GamePad. The longer a player holds down the InputAxis TurnRate or LookUpRate, the faster the rate. The Rate value should be clamped at 1.

My first though was to use a TimeLine but, it is not giving me the results I was hoping for.

Any advice would be much appreciated!

Current Logic (Not Working) alt text

Thanks so much!

Product Version: UE 4.15
Tags:
gamepad.jpg (85.5 kB)
more ▼

asked Jun 22 '17 at 11:11 PM in Blueprint Scripting

avatar image

tschmi22
53 2 10 6

avatar image Ninjin Jul 08 '17 at 12:11 AM

Was my advice working for you? Would be great to hear back. If it's working, can you please checkout your question? <3

alt text

avatar image tschmi22 Jul 24 '17 at 01:01 AM

Ninjin thank you very much for your reply! I'm sorry, I missed the notification of your response. You are spot on regarding the event tick and the timeline reset. I've since moved away from this method, turns out the end result was not as pleasing as I imagined. Thank you again for your reply :)

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

2 answers: sort voted first

It's not working, because your TurnRate is firing every tick, even if the player is not pressing any buttons. Thus, your timeline gets reset every frame.

However, what happens if the player let go of the button, will the camera instantly stop or not? Because if not, you can use Camera Rotation Lag in your Springarm Component! <3

more ▼

answered Jun 23 '17 at 12:16 AM

avatar image

Ninjin
4.1k 88 38 152

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

i think, you can use "Finterp" to smooth out the movement. try it out and let me know the results.

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Math/Interpolation/FInterpTo/index.html

https://www.youtube.com/watch?v=DsgnAtvzZHg

thanks

more ▼

answered Jul 24 '17 at 04:48 AM

avatar image

TahaRizvi
88 3 5 12

avatar image tschmi22 Aug 15 '17 at 10:29 PM

Thank you for your response Taha! After play testing I found smoother turning is not the best idea. Thank you again for replying though :)

(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