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 8303035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:25:46+00:00 2026-06-08T17:25:46+00:00

back in uni i remember there being an algorithm that’s use to calculate the

  • 0

back in uni i remember there being an algorithm that’s use to calculate the x and y position of point between the x and y values of 2 key frames, i know the one for a straight line

x = ((KeyFrame2.x – KeyFrame1.x)/duration)*time

my understanding is that the difference between the the 2 key frames divided by the duration give you how how many units of measurement (be it pixels mostly), for every unit of time (normally 1 frame) so you just multiply that value by how far though the timeline is

ie.
x = ((KeyFrame2.x – KeyFrame1.x)/duration)*time
x = ((10 – 0)/10)*3
x = (10/10)*3
x = 1*3
x = 3 (after 3 units of time, the object’s position will be +3 pixels along the x axis from KeyFrame1)

this one i understand however there i was also told about one that it used for curve paths, say a ball bouncing foward and the keyframes are when it hits the ground and when it’s at the peek of it’s bounce, this one is what i’ve forgotten and i have no idea where the hell my notes are for it

what i am asking is the algorithm used to calculate the x and y positions for an object with a path like this, i am asking for the mathematical algorithm which is code interdependent, what i’m trying to do is animate a number of orbs that will circle the center of the screen for a logo, i’ve got the objects in code to move however i need to adjust the calculations between keyframes

NOTE: even though i’m not asking for code, the algorithms are used in animation programming and as such my question relates to programming in general

NOTE2: KeyFrame2.x and KeyFrame1.x are not code, i see keyframes as an instance of a class which holds values such as x ,y, z, duration from previous frame ect

  • 1 1 Answer
  • 0 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-06-08T17:25:47+00:00Added an answer on June 8, 2026 at 5:25 pm

    You’re not asking for algorithms, you’re asking for equations. You can use various equations based on what kind of motion you’re simulating; for example, projectile motion under gravity is described by a parabola — a curve of the form

    x = a * y^2 + b
    

    For motion controlled by some intelligent force, curve-fitting based on higher-order polynomials or Bezier curves are more appropriate. Google is your friend here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Back when I was being taught HTML I remember a tag that displayed a
Back in the ITAR era, there was a popular sig that performed Diffie-Hellman key
Back story: Long ago, before dinosaurs were around, there was a contractor that wrote
Back in MVC3, I had a custom ControllerFactory which would use my own container
Back in the past, i found a third party webpage that was able to
I wished I paid more attention to the math classes back in Uni. :)
Back in 2006 I've created a web site using asp.net 2.0. At that time,
Back Story: I was approached to write an app, but iOS isn't something that
Years back I built a simple mail form that has been working like a
Back in the day of C/C++, the part of the language that really hung

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.