Hi Everyone, I need to know how can we represent the projectile motion gven a certain angle and velocity, such that I can watch the animated ball moving in is path on screen.... all using openGL in C++
Hanna Jane 0 Newbie Poster
Recommended Answers
Jump to Post— mrnutty 761First you need to know the Kinematic Equations
You can use them to model projectile motion.
1) Have a initial position, initial velocity, final position, final velocity,
and acceleration. The acceleration …
Jump to Post— mrnutty 761First have the object ready to fire, meaning have the object at the position
of where its going to be launched.Then you could do something like this :
Ball.y += ball.velY; Ball.x += ball.velX;Have the velX faster than velY;
Then you need to change …
All 7 Replies
Hanna Jane 0 Newbie Poster
mrnutty 761 Senior Poster
Hanna Jane 0 Newbie Poster
mrnutty 761 Senior Poster
Hanna Jane 0 Newbie Poster
mrnutty 761 Senior Poster
saurabh5584 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.