Solving for time in 1D Kinematics

  • Context: Undergrad 
  • Thread starter Thread starter Selroth
  • Start date Start date
  • Tags Tags
    1d Kinematics Time
Click For Summary

Discussion Overview

The discussion revolves around solving for time in a one-dimensional kinematics equation, specifically in the context of a programming project involving collision detection for a bouncing ball. The participant seeks assistance in rewriting the equation to account for acceleration, while expressing feelings of frustration and embarrassment about their current understanding.

Discussion Character

  • Homework-related
  • Exploratory

Main Points Raised

  • The original equation presented by the participant is P = P' + V't + (at^2)/2, and they are looking to solve for t with known variables.
  • The participant describes their project involving collision detection and the need to calculate collision times accurately, factoring in acceleration.
  • There is a mention of a flawed implementation where the current method does not account for acceleration, leading to difficulties in determining the correct collision time.
  • Another participant expresses a shared feeling of frustration regarding the timing of the original post and the discovery of a similar topic immediately afterward.

Areas of Agreement / Disagreement

Participants do not reach a consensus, as the original poster is seeking a specific solution while expressing uncertainty about their mathematical skills. The discussion remains unresolved regarding the method to incorporate acceleration into the time calculation.

Contextual Notes

The original poster's understanding of the kinematic equation appears to be incomplete, particularly in solving for time with acceleration included. The discussion does not clarify the assumptions or definitions necessary for a complete solution.

Who May Find This Useful

Individuals interested in programming physics simulations, particularly those working on collision detection algorithms or kinematics in one dimension.

Selroth
Messages
10
Reaction score
0
Short Version:

It's been several years since I last practiced any mathematics or physics. I'm trying to get my mind as sharp as it was back then. I'm sure the solution is obvious, and just under my nose...

I remember:

P = P' + V't + (at^2)/2

Where P is position, P' is initial position, V' is initial Velocity, a is acceleration, and t is time.

Solve for t. All other variables are known.

I feel so embarrassed I don't remember how to do this.

Long Version (programmers may be interested):

Before I joined the military I had a good hobby of computer programming, and did well with mathematics and physics. Now, my mental capacity is at an all time low, and I thought picking my hobby back up again would do me good. The past few weeks have been great! But then I hit a brick wall, and 2 days of Googling and still no answer is starting to affect my enthusiasm. It's not like me to sign up to a physics forum and create an account just to ask one question, but perhaps it's not so bad to call upon the help of charitable others if you're thankful.

Anyway, my current project is simple, and nothing special. It's not meant to be. It'd not the product I expect to benefit from; it's the journey. So, it's really just a bouncing ball – I wanted to implement some collision detection ideas I've had. My main idea is instead of looking for collision by seeing if collidable objects are overlapping and correct them, calculate when they'll collide. Queue a collision event in a timeline using that time, and execute the collision reaction code once that time comes.

This is my latest build that's a good example: http://selroth.draconity.org/Projects/Active/White Sands/Javascript/20110930/

The vertical chart on the right is the timeline, and you can see the collision events crossing the cyan line at the moment the ball collides with the wall.

However, it's actually flawed/not fully functional in that aspect yet, despite initial impressions. Because the time of collision is always changing when there's an acceleration, it's difficult for the program to move the timeline to the exact time it needs to be at. Currently, it takes the time simply by dividing the distance between the wall and the ball by the ball's velocity.

I'm at a point where I need it to account for the ball's acceleration too – the event marks on the timeline shouldn't move around.

(current version can be found here: http://selroth.draconity.org/Projects/Active/White Sands/Javascript/Current/ which has better comments and cleaner code if you want to look at the sourcecode yourself [Chromers can Shift+Ctrl+J, Firefoxers can FireBug, IE or Safari'ers can get a better browser =P] )

Otherwise, this is the function I'm having trouble with:
Code:
	//Find the time of collision for either the top or bottom walls
	function findYCollision(){ return (yVel < 0) ? "top wall" : "bottom wall"; }	
	function findYCollisionTime(){
		var d = (findYCollision() == "top wall") ? yPos :  400 - yPos;
		var t = gameTime + (d / Math.abs(yVel));
		return (t > gameTime) ? t : gameTime;
	}

I can't figure out how to rewrite t = ______ to where it accounts for acceleration (would be known as yAcc in this case)

I am extremely grateful for any replies, and have marked this topic for email notifications! Thank you!
 
Last edited:
Physics news on Phys.org
Welcome to Physics Forums :smile:
Selroth said:
That makes me want to scream and bang my head against the wall! :mad:
Ah, and welcome (back) to the world of physics :biggrin:
 
Redbelly98 said:
Welcome to Physics Forums :smile:

Ah, and welcome (back) to the world of physics :biggrin:

Thanks! :)
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
1K
  • · Replies 27 ·
Replies
27
Views
4K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K