• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Parabolic movement

Status
Not open for further replies.
Level 10
Joined
Mar 26, 2017
Messages
376
You add a base speed, and each time interval that base speed is reduced.

See this example. f means the flying height and t is the time that has passed.
I use time intervals of .03 sec for a smooth visual.

Meaning the first .03 time interval the flying height is boosted by 90, next interval +84 etc.

Lua:
f = f+90-(t*6)
SetUnitFlyHeight(u, f, 9999)
 
Level 24
Joined
Jun 26, 2020
Messages
1,928
You add a base speed, and each time interval that base speed is reduced.

See this example. f means the flying height and t is the time that has passed.
I use time intervals of .03 sec for a smooth visual.

Meaning the first .03 time interval the flying height is boosted by 90, next interval +84 etc.

Lua:
f = f+90-(t*6)
SetUnitFlyHeight(u, f, 9999)
Ok, but I also wanna the height depends of the horizontal distance the unit will travel.
 
Level 24
Joined
Jun 26, 2020
Messages
1,928
There are at least hundred jump spells and/or systems in the spells section. :)
Yes, you are right, but I have a problem, my unit when lands it has to be removed in that exact moment and do some actions, so How can I detect if the trigger that moves finish its work?, Using a confirmer no because that removes the unit before the periodic trigger ends, or Am I doing something wrong?
 
Status
Not open for further replies.
Top