ScratchData LogoScratchData
Back to ik2006's profile

Projectile Velocity Calculator

IKik2006•Created March 29, 2020
Projectile Velocity Calculator
0
0
21 views
View on Scratch

Instructions

This program calculates the velocity required for a projectile to hit a given target, with given parameters. These parameters are: 1) The gravitational constant, 2) The launching point's height, 3) The target's height, 4) The horizontal distance between the launching point and the target, 5) The angle of release.

Description

This was a problem that came up when we were designing a robot for the annual FRC (FIRST Robotics Competition). I made a program to compute the velocity and decided to make a Scratch Project about it for fun. It took a little math to find out the formula that makes this work, but I'm happy to say that it actually does work and is confirmed through tests (I'm also happy that Scratch uses degrees instead of radians, which was a real pain in my original python program since it rounds pi and therefore isn't that accurate.) I think it'd be cool to add a sort of animation into this that actually shows the motion of a projectile hitting a target, and how to sort of scale it into the fixed Scratch canvas.

Project Details

Project ID380553587
CreatedMarch 29, 2020
Last ModifiedFebruary 5, 2025
SharedMarch 29, 2020
Visibilityvisible
CommentsAllowed