Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: hoyoyo80 on July 23, 2018, 10:03:08 AM

Title: Projectile in non symmetrical parabolic path
Post by: hoyoyo80 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?
Title: Re: Projectile in non symmetrical parabolic path
Post by: jeanfabre 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
Title: Re: Projectile in non symmetrical parabolic path
Post by: hoyoyo80 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
Title: Re: Projectile in non symmetrical parabolic path
Post by: jeanfabre 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