Lua Line Cannon Trajectory Mapper

Cralant - Custom level - from Windows
PlayEdit14 players liked this.Log in to like this level.

Draws a line from the starting point of the cannon to the x and y location of the top of the mines trajectory, then to the landing point.

Simple code and example, using it to work on another larger project.
Currently the script works using trigonometry and some guessed principia world settings (still don't understand these) to map out the trajectory.

Feel free to use and improve.

Views: 1162 Downloads: 315 Unique objects: 10 Total objects: 10

Discuss this level

Log in to comment on this level.
  • FirePhenixFire: Very accurate :D
  • TechZ2124: Funny !
  • sdac: Great work! If you need something regarding the physics in Principia clarified, don't hesitate to ask
  • Cralant: Yeah it has its errors due to the cannon not being centered on 0,0 but attempting to fix this results in issues with the accuracy at angles closer to 90 degrees while leaving it results in errors closer to 0 degrees. So I left it as it is for the moment.

    Thanks Z :)
  • JOELwindows7: Awesome! 97% accurate!
  • JOELwindows7: @zardOz: Auto-Like?
    How?
  • zardOz2: Somebody activate the "auto-like" everything by Cralent feature

LEVEL ID: 3411