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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:23:21+00:00 2026-05-18T02:23:21+00:00

I need to create a pogo stick that jumps across the screen in arcs.

  • 0

I need to create a pogo stick that jumps across the screen in arcs. I was thinking the best way to do this would be to move it on a sin wave. If the top of the wave is 1, the ground is 0 and the bottom of the wave is -1, then every time it hits 0 I would reset the values to start the sin wave again. So instead of following the typical sin wave (0, 1, 0, -1, 0 etc) it would go 0, 1, 0, 1, 0 etc.

Unfortunately my math is pretty terrible and I’ve been trying for hours to develop a formula. At the moment I’m just trying to make a normal sin wave where the top half emulates a pogo stick jumping, can’t seem to even get that far. The closest I have is:

m_vel.x++;
float f = PI / 30 / 2;
m_vel.y = 200 * sin(f * m_vel.x);
m_vel.y = -m_vel.y;

I need the waves to be quite narrow, and the high point to be quite high. The above formula starts off ok for the first iteration but then the waves get wider and the high and low points close in on each other. Can anyone help a math noob out?

  • 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-18T02:23:22+00:00Added an answer on May 18, 2026 at 2:23 am

    Not sure about your math, your physics needs some brushing up! The pogo stick is an example of projectile motion and its trajectory forms a parabola, which is described by a quadratic equation.

    However should you persist with the incorrect sinusoidal model: The “top half” (or positive) part of a sine wave runs from 0 to pi radians. The sine represents only the y term (height), you should not have an x term there, that simply determines the horizontal step for each point. Where you have 200, that represents the maximum height the pogo stick will reach:

    height = max_height * sin( theta ) ;
    

    where 0 <= theta <= pi, and is incremented over time. The size of the increment will be determined by the forward speed, or total jump distance.

    theta_step = pi / jump_distance ;
    

    so that by the time you have reached pi radians, you will have moved by jump_distance. During the jump instantaneous distance (and therefore the x value in a plot) will be:

     distance = jump_distance / theta ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need create an email list sending to many emails. what is best solution
I need create a vector z in numpy such that z[i] = 1/(1+i). Is
I need create menu for widget like this https://www.gstatic.com/android/market/com.bugabuga.switcher/ss-320-0-0 . What components are used?
I need to create a <div> of height 200px that has some text at
I need to create a java.util.Date object with an Australian timezone. this object is
I need create something like this in xml, but it is not possible to
This is my code. I need create 10 files with this format: 0.txt 1.txt
I need create some fork for project. So for some beans that depends from
I need create a stored proc that will return a list of a code,
I need create a SQL Server stored procedure that does the following: Take an

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.