Recent content by Selroth

  1. S

    Prog Simulation: Force of spring across time intervals

    Genius! This looks very, very promising! It's a bit late for me to dig into it right now, but I look forward to implementing this tomorrow or later this week! Thank you very much AlephZero!
  2. S

    Prog Simulation: Force of spring across time intervals

    Unfortunately, the graph was drawn freehand as an approximation and simply to give myself a way to visualize what's happening. I could perhaps freehand a position and velocity graph as well, but none of these graphs are meant to be to scale/reference-able. Allow me to elaborate on how I...
  3. S

    Prog Simulation: Force of spring across time intervals

    Thanks for the reply! Aye. A smaller time interval will yield more accurate results, and if the computer processed infinitely fast with an infinitely small time interval, it would be perfectly accurate. :) I was hoping there may be some math trick to this that I'm just not seeing. Since...
  4. S

    Prog Simulation: Force of spring across time intervals

    Programming a spring I'm still having a lot of trouble programming a spring in my basic simulation. I'm sure the solution is staring me in the face, mocking me. Consider the following code: myMass = 1; myAcc = 0; myVel = 0; myPos = 20; //20 pixels from the top border myGravity =...
  5. S

    Prog Simulation: Force of spring across time intervals

    Bump? I was afraid of only getting one reply...
  6. S

    Prog Simulation: Force of spring across time intervals

    If the spring had no impact on the particle, then x + v*dt would be accurate. However, the spring would add resistance, thus the position would be less than that.
  7. S

    Prog Simulation: Force of spring across time intervals

    Hello again. Still trying my hand at a physics simulation, as I've been re-learning a lot of forgotten physics and math in my journey! Been stuck on this problem for a few days now though, and thought I'd consult the experts! I'm probably missing something obvious, and the solution is...
  8. S

    Solving for time in 1D Kinematics

    Thanks! :)
  9. S

    Solving for time in 1D Kinematics

    I can't f'n believe this. Right when I posted my thread, for "similar topics" at the bottom of the page I find this: https://www.physicsforums.com/showthread.php?t=113313 That makes me want to scream and bang my head against the wall! :mad:
  10. S

    Solving for time in 1D Kinematics

    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'...
Back
Top