New Advanced Trajectory Template from KF

kjflukekjfluke Member, PRO Posts: 23
Hey guys. I have been trying to improve on ORBZ trajectory demo and I have finally done it. I am happy to share this discovery with the community, so if someone knows where I can upload it to make it available to all, let me know. Here is a video demo.
The template allows you to move the cannon anywhere on the screen and still get a live trajectory path. It also places the plot points evenly spaced from the cannon to the predicted endpoint so the dots don't disappear when aimed straight up.
Note that in the video the ball as a drag attribute set to 100, but with no drag, the pall follows the path exactly! Thanks to ORBZ for the great start and to Wikipedia for posting the range formulas I needed. I hope you can put it to good use!
-K

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You can post the file right here. Just compress it as a .zip file, upload it to a file sharing service (e.g. DropBox, MediaFire, etc.) and then post the download link.
  • Golem_EntGolem_Ent Member Posts: 17
    I would love to see the code behind this. If you post a download link, would you kindly let me know?
  • lobosco_estudiolobosco_estudio Member Posts: 98
    @kjfluke this is great! I've trying to make this a long time. Please send the template, and help this desperate guy!
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    wow this is very nicely done, I would love to try out this template and if allowed use it in one of my projects.
  • chicopchicop Member Posts: 263
    Nice!
  • -Timo--Timo- Member Posts: 2,313
    edited October 2013
    This looks like a great template :) well done!
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    @saif_shammari nope, wish i did though
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @saif_shammari I have the original ORBZ demo (without moveable cannon) if you want that but I don't have this one. Surprising, too, because I have almost every demo ever made (lol) but I think I never got this one because it wasn't posted here.
  • -Timo--Timo- Member Posts: 2,313
    edited December 2013
    Surprising, too, because I have almost every demo ever made (lol)
    Do you also have all my templates :o ;)
  • -Timo--Timo- Member Posts: 2,313

    @kjfluke @tatiang @Golem_Ent @lobosco_estudio @CodeMonster @chicop @timolapre1998
    Any one have this template ?
    I dont have this one...
    but I made my own (built from the ORBZ template called Realtime Projectile Trajectory)
    download link: https://www.dropbox.com/s/jq8y9qf3s8ht1fr/cannon psychics.zip
  • ChechesoftChechesoft Member, PRO Posts: 171

    What happened with this? did any body uploaded the template?

  • ant_ladant_lad Member Posts: 222

    This is over 2 years old

  • ookami007ookami007 Member Posts: 581

    I don't think so.

  • ChechesoftChechesoft Member, PRO Posts: 171
    edited June 2015

    Its a shame, I had the Orbz trajectory Demo, but I cant make it work as nice as this. (shooting left, rendering the points evenly, even totally upwards, etc...) It would have save me lots of time...

  • ChechesoftChechesoft Member, PRO Posts: 171

    In order to keep the dots evenly distributed, and allowing to render when shooting upwards, I am trying to replace the "display size" with a range equation... but, it dont work, as it tracks this distance only once... I will keep trying, if succesful I would post the template here...

  • ChechesoftChechesoft Member, PRO Posts: 171

    Well, after a little bit of work, I managed to keep the dots evenly spaced.
    You should constrain a game atribute with the "reach" formula:

    ((game.launch.velocity^2)sin(2game.launch Angle))/game.gravity

    Create an attribute for the dots, init x, and make the dot change it with its own x position.

    Then create a constrain for their x position "self init x/(Game.display.size.with/game.reach)"

  • Nate_SNate_S Nate - Pixel Artist - Developer - Graphics Designer Member Posts: 86

    Thats cool!

Sign In or Register to comment.