Trajectory Calculator for GMS2
A downloadable asset pack
Buy Now$4.90 USD or more
Introducing the box2d trajectory calculator!
This is a calculation script, made entirely for GameMaker's built-in physics engine, Box2D.
With this you could predict how a projectile will fly before it starts flying, like in that bird game.
What can it do?
- It can predict the parabola path of any physics bodies.
- It can predict the max height & distance the projectile will reach.
- It supports collision detection during the calculation.
- It supports the "linear damping" property and is aware of the speed limitations of box2d physics.
- It supports the world x/y gravity & pixel-to-metres properties of box2d physics.
- Each script comes with detailed commentaries for how to use
With all those information gathered, you can use them in various ways to your advantage:
- Render a predicted parabola for your tanks and weapons
- Instantly know where a projectile will land, without actually firing it and waiting for it to land
- Get a predicted coordinate of the point of impact with any physical objects, with the script's collision detection ability
- And much more, with your own creativity...
Status | Released |
Category | Assets |
Rating | Rated 5.0 out of 5 stars (1 total ratings) |
Author | K.Blank |
Tags | angry-birds, box2d, GameMaker, Math, parabola, Physics, prediction, projectile, Tanks, trajectory |
Purchase
Buy Now$4.90 USD or more
In order to download this asset pack you must purchase it at or above the minimum price of $4.90 USD. You will get access to the following files:
b2d_traj.yyz 483 kB
Comments
Log in with itch.io to leave a comment.
Is it a function that predicts or is it a ghost version of my object? Does it calculate using phy_speed_x or just with a defined force? The return is a list of points that the object will pass through?