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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to take the speed of a mesh on a spline to show in a widget?

hello, i would want to post the speed of a mesh moving on a spline in a widget but i do not manage to get back the speed. You know how to do this? sorry for my so bad english :'(

Product Version: UE 4.19
Tags:
more ▼

asked Oct 30 '18 at 12:46 PM in Blueprint Scripting

avatar image

Keb6
1 1

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

2 answers: sort voted first

Hi, I'm not sure how you have set up the moving mesh to follow your spline but in the actor which has the mesh, you can use get velocity node for the mesh and then get vector length from the previous node in the even graph. This gives you speed of the actor (the mesh) You can then cast this to the widget BP.

more ▼

answered Oct 30 '18 at 01:02 PM

avatar image

Shri_Charana
14 3 6 8

avatar image Shri_Charana Oct 30 '18 at 01:05 PM

I'm assuming that you have the mesh as / in an actor.

avatar image Keb6 Oct 30 '18 at 01:19 PM

Hello and thank you for your answer, yes I have my mesh which moves on the looped spline with a timeline simply, I sent back the velocity towards my widget but I have no value of speed to show in the screen

avatar image Shri_Charana Oct 30 '18 at 01:32 PM

Can you upload the screenshots of your BPs' event graphs? Also the time line if possible.

avatar image Keb6 Oct 30 '18 at 03:03 PM

For a character that works, not for a mesh on a spline...

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

Hey, I have to check it out. I'm away from my computer right now. I'll have to see tomorrow.

more ▼

answered Oct 30 '18 at 03:31 PM

avatar image

Shri_Charana
14 3 6 8

(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