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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:29:59+00:00 2026-05-23T09:29:59+00:00

For a program, stars appear at the bottom or top of the screen at

  • 0

For a program, stars appear at the bottom or top of the screen at a random, precalculated position. The stars travel to their predetermined destination which is the top or bottom of a letter (based on if the star originated above or below the letter). Currently the star’ motion are mostly linear, with a bit of curve from some homebrewed equation. I would like a solid parabolic equation in which the stars reach their destination position at an angle that is roughly perpendicular (+- 20 or so degrees) to the top/bottom of the destination letter. I phoned in calc 3 so I can’t figure out how to implement the parabola for this problem. I’m also open to a completely different way of animating these objects. Help appreciated. Thanks!

enter image description here
enter image description here
enter image description here

Extraneous info: the stars’ source position is never directly above or below the letter they are to collide with, and is never more than half the screen’s width away for the bottom-originating stars or 1/3 of the screen’s width away for the top-originating stars.

  • 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-05-23T09:29:59+00:00Added an answer on May 23, 2026 at 9:29 am

    So, we want a parabola, with the apex known, as well as some other arbitrary point.

    First, consider the apex. At the apex of a parabola, the first derivative of y-position is zero; d/dx(ax^2 + bx + c) = 2ax + b, so solving for x when 2ax + b = 0 we have 2ax = -b => x = -b/2a. So X_a = -b/2a.

    Now, we can use this to solve for either a or b. So, a = -b/2X_a.

    We also know the y-coordinate for the apex point: Y_a = (-b/2X_a)X_a^2 + bX_a + c; Y_a = -bX_a/2 + bX_a + c; Y_a = bX_a/2 + c; solving for c: c = Y_a - bX_a/2.

    Now plug this in the equation for the other known point: y = (-b/2X_2)x^2 + bx + Y_a - bX_a/2; y = -bX_a/2 + bx + Y_a - bX_a/2; y = -bX_a + bx + Y_a; solve for b: bx - bX_a = y - Y_a; b(x - X_a) = y - Y_a; b = (y - Y_a) / (x - X_a).

    And now you have formulas for the three parameters of a quadratic function (with a and c dependent on b), so you can easily obtain a parametric form.

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

Sidebar

Related Questions

Here is a simple graphics programs which adds some stars on the screen. import
Project Euler problem 18 asks us to find the route from top to bottom
I have a program that will allow users to sell their digital products. When
I have an image which moves in a random direction. My problem is everytime
i have the following problem. The 1st step is to implement a program, which
I have a program, written in Java, which originally used its directory in Program
I have a problem with my program which records the microphone. Sometimes when I
I have been debugging a Python program which segfaults after receiving a KeyboardInterrupt exception.
I figured out how to get the menu bar on top of the screen.
I have an design idea about the appearence of a small program , which

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.