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"

keeping an actor upright

I have a buoyancy system in my project. I am looking for a way to keep an actor facing upward.alt text

when I push the cube it look like the image above and will continue to spin in every direction. Is there a way I could have it constantly trying to rotate it back to its upward so it is upright. I don't want it to instantly rotate back but more gradually. If possible I would like the rate at which it moves back to be variable.

alt text

~Thanks In advance

Product Version: UE 4.20
Tags:
cube-flipped.jpg (27.5 kB)
cube.jpg (25.3 kB)
more ▼

asked Feb 09 '19 at 09:58 PM in Blueprint Scripting

avatar image

TuXsOrDs
112 9 10 16

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

The RInterpTo node would be great for this. InterpTo nodes in general are great for achieving gradual movement.

Here's a video showing how it works: https://www.youtube.com/watch?v=yoKJMhgSxmU

more ▼

answered Feb 10 '19 at 07:02 PM

avatar image

Raxs_Slayer
156 7 13 19

avatar image TuXsOrDs Feb 23 '19 at 02:26 PM

This worked for me. thank you so much! (my apologies for my late response I had some other things I had to deal with)

avatar image Raxs_Slayer Feb 23 '19 at 02:27 PM

No worries at all. I'm really glad this solution helped.

(comments are locked)
10|2000 characters needed characters left
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