How do I graph a parabola using an equation where the user can just input an angle and velocity.

And is it possible to have an object follow this path?

Recommended Answers

All 4 Replies

I still cant? can someone provide sample code?

Use the angle to split the velocity into its horizontal and vertical components. For each tick of the clock keep the h constant, but add a small downwards increment to the vertical velocity (models the acceleration due to gravity). DIsplaying the results is stanbdrad stuff - you'll find what you need on the web.

Well, how about look at this link to get start with drawing 2D curved lines?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.