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"

How to stop the rotation of articles naturally

I created a fan in UE4,I want to control it from stationary to rotating, and then from rotating to stationary. I don't know how to do it,I can let him start to rotate naturally, but not from rotation to stillness as in the real world.Please help me.Thanksalt text

Product Version: UE 4.21
Tags:
01.png (367.3 kB)
02.png (102.6 kB)
more ▼

asked Jul 08 '19 at 03:58 AM in Blueprint Scripting

avatar image

White_maybe
1 1 1

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

1 answer: sort voted first

If I understand you correctly you do not want to toggle between stationary and rotating instantly but you want to start the rotation slowly and smoothly and do the same when turning the rotation off, correct?

If yes then you need to edit your curve in the Timeline node. You can manipulate the shape of the curve to not have any hard edges and create the smooth motion when state of the object is being changed.

https://docs.unrealengine.com/en-US/Engine/Blueprints/UserGuide/Timelines/KeysAndCurves/index.html

alt text

Unrealistic jump from speed 0 to max speed.

alt text

Linear change. It starts at 0 and gets faster and faster in the linear fashion. Also unrealistic (but better than the first one).

alt text

Smooth transition. Starts really slowly and then gets faster and faster logarithmically (usually it's faster to change speed in car from 30km/h to 35km/h than from 0km/h to 5km/h).

rotation-01.png (4.0 kB)
rotation-02.png (4.6 kB)
rotation-03.png (4.3 kB)
more ▼

answered Jul 08 '19 at 06:55 PM

avatar image

dptd
246 3 4 5

avatar image White_maybe Jul 09 '19 at 03:49 AM

Hello! I used the method you said,I simulated a slow acceleration and then a slow rest. and the effect is good.But I can't control it。 I want a fan just like the real world。In other words, when I press F, the fan starts to rotate, and it will always rotate. When I press F or other buttons again, it will naturally stop rotating.Is there any way to do this? Thank you very much.

avatar image dptd Jul 09 '19 at 09:10 AM

You can have animation for the smooth transition between 0 speed and max speed. You can use it when you press the F button (fan will slowly start to rotate). You can use the same timeline node but inverse pin to stop the fan smoothly (transition from max speed to 0 speed). You can create custom event which will be triggered by timer to keep rotating forever. You can also create second timeline node (with only max speed) which will be looped forever (loop checkbox inside Timeline node) which you can turn on and off by some other events. There are many ways of doing this.

avatar image White_maybe Jul 09 '19 at 06:45 AM

I also want to ask whether this slow and natural stop can only be achieved by timeline。Timeline how to achieve continuous rotation?

avatar image dptd Jul 09 '19 at 09:04 AM

When you enter your Timeline node there is a toggle box called "Loop". When you turn it on your animation will keep repeating forever so you can use it for continuous rotation.

avatar image White_maybe Jul 09 '19 at 08:32 AM

I did it. Although I thought it was a bit stupid, I broke it down into three parts.

alt text

try.png (132.0 kB)
(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