VB.Net never meant for games! it's more recommended for software developement, but hey why not have some fun. If anyone out there is looking to create an Angry Birds Game-like or a Simulator for throwing an object, you've come to the right place, this code will give you great start/push to build your own app. #**Trajectory**# ![dd5f632319f6a4422579ce0a7c3db41e](/attachments/large/4/dd5f632319f6a4422579ce0a7c3db41e.jpg "dd5f632319f6a4422579ce0a7c3db41e") A Trajectory for a projectile have a bunch of formulas, the more equations you use, the more realistic motion you'll get. As a start i used only 3 formulas which they're the essentiel ones,the X and Y coordinates and the angle, containing … |
+1 forum
2 | ||

This example calculates timed x, y points of a projectile motion that can be used for plotting or other calculations. |
+3 forum
3 | ||

Hi, I have been trying to solve a problem,i need to write code to an existing projectile class to calculate the maximum height reached by a projectile ,i have tried all possible solutions but seem stuck,here is the code below # Canonball in form of a class # projectile.py from math import pi,sin,cos class Projectile: def __init__(self,angle,velocity,height): self.xpos=0.0 self.ypos=height theta=pi*angle/180.0 self.xvel=velocity*cos(theta) self.yvel=velocity*sin(theta) def update(self,time): self.xpos=self.xpos+time*self.xvel yvel1=self.yvel-9.8*time self.ypos=self.ypos+time*(self.yvel+yvel1)/2.0 self.yvel=yvel1 def getY(self): return self.ypos def maxHeight(self,time): self.ypos=self.ypos+time*(4.9*time) return self.ypos def getX(self): return self.xpos def getInputs(): a=input('Enter the launch angle in degrees : ') v=input('Enter the initial velocity in m/s : ') h=input('Enter … |
+0 forum
2 | ||

Hello guys, I'm currently working on a project that simulates a projectile motion. So far I'm preparing the flowchart of the program. I'm stuck when it comes to designing the path([B]2D Line[/B]) of the projectile Motion. So my question is, what fields,methods my class need in order to draw (in 2D) the path of a projectile motion. Any help is appreciated! I'm including an attachment of an example of a flowchart that I'm working on. |
+0 forum
0 |

The End.