This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-09-23 08:05:42

feasby007
Scratcher
Registered: 2010-04-08
Posts: 6

Trajectory Formula Needed

Hello,

So for a game I am making I need a formula for trajectory. Basically a canon fires at a certain angle and I need a formula to convert that into a path.

The information given is:
Weight
Angle
Power (which could be converted into speed)

If anyone could help me by posting their answer in scratch blocks maybe? It would help a lot.

Thanks

Last edited by feasby007 (2012-09-23 08:17:38)

Offline

 

#2 2012-09-23 08:19:36

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Trajectory Formula Needed

This uses a parabolic arc which should be what you want. Download to see the scripts.

Credits are in the project notes.

[EDIT: I can't type out the script. It's too long and complicated to type.]

Last edited by jontmy00 (2012-09-23 08:20:50)


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

Board footer