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"

Request - get component velocity w/ physics

Hi there,
I was wondering if there is a method/node to get the velocity of a non-simulating physics component (ie moving along a spline of through blueprints) ? I think this would be a great addition to make to UE.
Getting that velocity using Blueprints during a timeline is quite a mess (I can't even get there).

Product Version: UE 4.20
Tags:
more ▼

asked Oct 15 '18 at 03:00 PM in Blueprint Scripting

avatar image

Teapot Creation
165 22 33 47

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

1 answer: sort voted first

I dont know a built in way but if you keep track of the previous few positions, take the average of their differences and the curent position's difference to that over a few frames, then I think that would be a good estimate of the current velocity.

You could do that using an array of vectors which pops the oldest one off whenever it pushes the newest one on, after reaching the right size(probably 3 or 4 slots)

Oh and don't forget to account for delta time.

more ▼

answered Oct 26 '18 at 08:26 PM

avatar image

mightyenigma
3.7k 18 23 20

avatar image Teapot Creation Oct 30 '18 at 04:11 PM

Yes that is an option. However I think a simple node would be glad, since such a node exists for simulating objects (and your setup probably would work with simulating objects too).
However I never managed to get a precise result with a similar setup during a timeline (see https://answers.unrealengine.com/questions/831249/get-speed-of-a-skeletal-mesh-moving-along-a-spline.html), and a simple node would avoid many errors...

(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