playMaker

Author Topic: Projectile in non symmetrical parabolic path  (Read 1630 times)

hoyoyo80

  • Full Member
  • ***
  • Posts: 136
Projectile in non symmetrical parabolic path
« on: July 23, 2018, 10:03:08 AM »
Hi all,

Im looking for a way on how to launch a projectile in skewed parabolic curve. I found on youtube on how to throw grenade in parabolic curve with the known end location. Anyway on doing it with skewed curve and known end location?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Projectile in non symmetrical parabolic path
« Reply #1 on: July 30, 2018, 06:25:55 AM »
hi,

 you can do this with a custom animaction curve, going from 0 to 1 in the horyzontal axis. and 0 to 1 on the vertical axis.

 this way you have a template for your trajectory, that you then multiply by the distance and the height you want, and use that as your path for the projectile.

 not an easy task, but very much doable.

 else, you can go all out with a proper equation based computation, that's also doable in PlayMaker, but you need to have the equation to begin with.

 Bye,

 Jean

hoyoyo80

  • Full Member
  • ***
  • Posts: 136
Re: Projectile in non symmetrical parabolic path
« Reply #2 on: August 04, 2018, 11:28:39 PM »
Hi, ive understand the part of using animation curve to plot the shape of the curve.Done. But what playmaker action should i use to scale it with distance and height?

Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Projectile in non symmetrical parabolic path
« Reply #3 on: August 24, 2018, 03:35:15 AM »
Hi,

 use the action FloatOperator to scale the distance and height, you can use floatMultiply too if you don't want intermediate fsmvariables.

 Bye,

 Jean