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"

Acceleration in seconds (over time) / finterp?

Hello, i want to create an acceleration on time. For example from 0-300 in 4s.

Can it be done with interp speed? The weird thing is, i wonder why someone created "Interp speed" and not "Seconds".

I guess the Finterp doesn't work with my idea, i need to make it using "World Delta Seconds", i know how to create a stop watch. ( Value(1) - World Delta Seconds) and then just "Print = '1s is over' " done. How do i do this with math?

My max speed value is set to "300" Time to reach 300 is "4" seconds.

Product Version: UE 4.20
Tags:
more ▼

asked Aug 30 '18 at 07:03 PM in Blueprint Scripting

avatar image

G1K777
36 3 4 12

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

1 answer: sort voted first

Speed = Acceleration * Time => Acceleration = Speed / Time => Acceleration = 300/4 = 75

So if you want 0 to 300 in 4 sec your acceleration should be 75 (units per seconds squared).

 VelocityVector = VelocityVector + AccelerationVector * WorldDeltaSeconds

and then move your pawn with VelocityVector * WorldDeltaSeconds

more ▼

answered Aug 30 '18 at 08:07 PM

avatar image

dZh0
1.3k 6 5 9

avatar image G1K777 Aug 30 '18 at 09:05 PM

Speed Boost Acceleration = Speed Boost / 4s.

Speed = Speed + Speed Boost Acceleration * WorldDeltaSeconds ? alt text

boosttime.jpg (60.2 kB)
avatar image dZh0 Aug 31 '18 at 08:53 AM

The text (Speed = Speed + Speed Boost Acceleration * WorldDeltaSeconds) is correct but the blueprint is not.

You should first do Speed Boost Acceleration * Get World Delta Seconds before adding it to the Speed and then just set that.

(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