Playmaker Forum
PlayMaker Updates & Downloads => Share New Actions => Topic started by: skipadu on April 03, 2018, 04:11:01 PM
-
In the Playmaker's Slack-channel question was made how to move projectile in an arc without using physics.
I found a great post from the Unity's forum (https://forum.unity.com/threads/throw-an-object-along-a-parabola.158855/#post-1087673) by Stephan-B. So this action is almost the same, only with some slight modifications.
- You set the start position for the projectile.
- Set destination for the projectile
- Give angle for movement
- Set gravity; bigger gravity -> more speed
- Set the actual projectile that will be moved
- Set event to send when movement is ready (optional)
- Give variable to store the distance travelled (optional)
Waiting to be merged to Ecosystem's repository.
-
Hi,
no, it's fine :) it can go on the ecosystem!
Bye,
Jean
-
Hi,
no, it's fine :) it can go on the ecosystem!
Bye,
Jean
Okay, I will put it also there :)
-
AH! This is SO useful! Thank you for making this!
I remember raiding his exact post thinking huh.. I should see if I can convert this to an action, and just never did xP
-craigz
-
Sorry for the double post ;)
Also might be good to include a vector destination that can be used? (either in offset or in place of target?)
*EDIT: Also! Looking at the code it *looks* like it should be rotating to the direction of movement, but doesnt look like it is? xD
-craigz