Jump to content
Sign in to follow this  
Shadow72

[Tutorial] How to make objects rotate smoothly

Recommended Posts

Smoothly Rotate Objects

ezgif.com-video-to-gif.gif.05da808eef53b5496214b28952e649b3.gif

 

 

1:

Place down a lever and a object you want to rotate.

7317a71ff19f19999fc0a73e4be522ed.thumb.png.4043a4bf3d011966cf9f301473b6d9e1.png

 

2:

Place down a time trigger and disable it(top left check mark). In the "Initial Delay" drop down set "Duration" to 0 and "Repeat Count" to 180 . In the "Time Between Repeats" drop down set the "Duration" to 0.001.

fe05ab6f2b64ef3b5db66f08697c3ee2.thumb.png.30018d8d2fccc2f5a9ed01f1bd0437f8.png

 

3:

Add a new action and set it to "Rotate Entity Instantly". Set the Entity to the object that you want to rotate. Set the "Rotation" to Relative and put -0.5 in the third "Offset" box. Check "Local Coordinate".

c2da70a2af0a1f1d9b0f8c07d9c6008a.thumb.png.4e087c31ba993b5b5d89ca4fc838ca1a.png

 

4:

Place down a Event Listener. In the "Target" drop down set "Entity" to the lever you placed, "Activate On" to End, and "Interaction" to Switch On. Add a new action in "Actions To Run" and set it to Enable Game Logic. Set "Game Logic" to the Time Trigger you just made. Make sure "Enable" and "Reset To Default"  are checked.

1bccdca4d161e7939fdf9e5fb44f0fc7.thumb.png.26755e1314379240c1336be148851eb0.png 

 

5:

Duplicate the Event Listener and the Event Trigger you just made. In the new Event Listener in the "Target" drop down set "Interaction" to Switch Off. In the new Time Trigger in the "Rotation" drop down put -0.5 in the third "Offset" box.

138896485eee6a85fe005563887664ef.thumb.png.ceb0c6cff8bf40483dae4fa9ff07fad0.png

9382908c2df3e8ed9d8fa1e8b8621ce4.thumb.png.0c5b43e7ce3d66e7a6e1209da194b505.png

 

 

 

If you want to smoothly move A object instead of rotating it:

 In the Time Trigger set the action to "Move Entity Instantly" instead of "Rotate Entity Instantly"

Edited by Shadow72
  • Thanks 1
  • Upvote 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×