Hey guys, How would you approach thr math in making an arc for a projectile? I am trying to make a spinning arcing throwing axe. Thanks Computer friends! :)
Develop games in your browser. Powerful, performant & highly capable.
If you're fine with the projectile stopping when hitting solids you could give the object the platform behavior, disable controls and set acceleration and deceleration to 0. Then you can throw it by setting the vectorx and vectory with events.
In that case there is a little bit of math but not to much:
If you know the speed and angle you want to launch the axe do this:
vectorx = speed*cos(angle)
vectory = speed*sin(angle)
Or you could use the bullet behavior and set the gravity property.
There are capx' around the forum. A search for "projectile" will yield a lot of useful topics.