playMaker

Author Topic: TransformMoveProjectile  (Read 1087 times)

skipadu

  • Playmaker Newbie
  • *
  • Posts: 43
  • Learning continuously
    • View Profile
    • serialkamikaze.itch.io
TransformMoveProjectile
« on: April 03, 2018, 01: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 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.
« Last Edit: April 04, 2018, 08:34:23 AM by skipadu »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13889
  • Official Playmaker Support
    • View Profile
Re: TransformMoveProjectile
« Reply #1 on: April 03, 2018, 11:57:51 PM »
Hi,

 no, it's fine :) it can go on the ecosystem!

 Bye,

 Jean

skipadu

  • Playmaker Newbie
  • *
  • Posts: 43
  • Learning continuously
    • View Profile
    • serialkamikaze.itch.io
Re: TransformMoveProjectile
« Reply #2 on: April 04, 2018, 08:03:16 AM »
Hi,

 no, it's fine :) it can go on the ecosystem!

 Bye,

 Jean
Okay, I will put it also there :)

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 177
    • View Profile
    • Haven Made
Re: TransformMoveProjectile
« Reply #3 on: April 24, 2018, 12:32:47 PM »
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

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 177
    • View Profile
    • Haven Made
Re: TransformMoveProjectile
« Reply #4 on: April 24, 2018, 01:01:08 PM »
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
« Last Edit: April 24, 2018, 02:04:28 PM by craigz »