Skip to content

Instantly share code, notes, and snippets.

@Sgeo
Last active January 7, 2020 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sgeo/e8b1499fb3a3b9751248569097ac4b29 to your computer and use it in GitHub Desktop.
Save Sgeo/e8b1499fb3a3b9751248569097ac4b29 to your computer and use it in GitHub Desktop.
Assumptions: Start at 0, time = t goes from 0 to 1
let b = end of move action
let c = end of 1st SetPoint3Action
let d = end of 2nd SetPoint3Action
let e = end of 3rd SetPoint3Action
let d(t) = (e-d)t + d
let c(t) = (d(t) - c)t + c
let b(t) = (c(t) - b)t + b
let p(t) = b(t)t
p(t) = ((((((e-d)t + d) - c)t + c) - b)t + b)t
p(t) = -bt^2 + bt - ct^3 + ct^2 - dt^4 + dt^3 + et^4
p(t) = (e-d)t^4 + (d-c)t^3 + (c-b)t^2 + bt
High jump (1 second instead of 6):
p(t) = 150(1-(1-2t)^4)
p(t) = -2400t^4 + 4800t^3 - 3600t^2 + 1200t
e-d = -2400
d-c = 4800
c-b = -3600
b = 1200
c = -3600 + 1200 = -2400
d = 4800 + -2400 = 2400
e = -2400 + 2400 = 0
b = 1200
c = -2400
d = 2400
e = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment