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 check if an object is currently in motion?

I have a physics-based object "Metal Panel" that can be moved by the player walking into it. I would like to have a looping sound play while the object is being pushed but I am unsure how to check for that. I've tried fining the Velocity but I ran into issues trying to convert it to a variable to be used with a branch statement.alt text

Product Version: UE 4.18
move.jpg (87.3 kB)
more ▼

asked Apr 22 '18 at 12:24 AM in Blueprint Scripting

avatar image

8 1 2 7

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

1 answer: sort voted first

Just get the velocity of the object.

Take this example where the SM_Chair is a physical object, and the BP is always checking whether the actor is moving or not, depending on the velocity length.

alt text

moving.png (80.1 kB)
more ▼

answered Apr 22 '18 at 10:19 AM

avatar image

481 3 5 12

avatar image Kwixb Apr 22 '18 at 02:00 PM

Thank you, sir! Works like a charm! I just had to change a few things to get it to work my way.

(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