Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3677018
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:10:14+00:00 2026-05-19T03:10:14+00:00

This may be ridiculously obvious, but math wasn’t my strong suit in school. I’ve

  • 0

This may be ridiculously obvious, but math wasn’t my strong suit in school. I’ve been banging my head against the wall long enough that I finally figured I’d ask.

I’m trying to animate a sprite moving along a 2D parabolic path, from point A to point B. Both points are at the same y-coordinate. The desired height of the parabola from the starting/ending y-coordinate is also given (or, if you prefer, a desired velocity). Currently in my code I have a timer firing at a high frequency. I would like to calculate the new location of the ball based on the amount of time that has passed. So a parametric parabola equation should work nicely.

I found this answer from GameDev adequate, until my requirements grew (although I’m not sure its really a parabolic path… I can’t follow the derivation of the final equations there provided). Now I would like to squish/stretch the sprite at different points along the parabolic path. But to get the effect to work right, I’ll need to rotate the sprite so that it’s primary axis is tangential to the path. So I need to be able to derive the angle of the tangent at any given location/time.

I can find all sorts of equations for each of these requirements (parametric parabola, tangent at a point, etc.), but I just can’t figure out how to unify them all. Could someone with more math skills help a fellow coder out and provide a set of equations that will work? Thanks ever so much in advance.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:10:14+00:00Added an answer on May 19, 2026 at 3:10 am

    Let X be the distance from A to B, Y the desired height of the parabola, V the horizontal speed.

    x = Vt
    
    y = Y - (4Y/X^2) (X/2-Vt)^2
    
    tangent dy/dx = (8Y/X^2) (X/2-Vt)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may be a ridiculous question, but it's been bothering me for a while.
This may be a simple fix and maybe I'm missing something obvious, but when
This may be a math question more than a programming question, but we'll see.
This may seem like an obvious problem, but I have looked on the facebook
This may be a silly question, but it's been bugging me. I've been writing
This may be a stupid question but I have a code with the following
This may be have a better name than custom tab completion, but here's the
This may be the wrong place but this is new to me. I did
This may be a simple question but I can;t find the answer anywhere. Here
This may sound like a very generic question but here it goes. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.