+ Reply to Thread
Results 1 to 2 of 2

Thread: help with the math of a spring

  1. #1
    Wire Amateur sexiewasd's Avatar
    Join Date
    Feb 2008
    Posts
    34

    Default help with the math of a spring

    I am making a car that behaves as a real one would, it is using only thrusters, no wheels or very many moving parts. Right now I am trying to mimic spring force.

    I have a 1x1 panel on a slider to test things. There is a ranger and a thruster on the bottom of the plate, also the thruster multiplier and thruster weight is set so that 1 unit of thrust is equal to 1 unit of weight, so with a panel weight 50u and a thrust of 50u the panel will act as if it has zero gravity.

    I have an Egate doing the very basic computation of Thrust = Max_Range - Range, so that as the panel enters the rangers max range and gets closer to the ground it outputs more thrust.

    From the top of it's travel with zero thrust to the bottom it is taking away all of the panels momentum, but as soon as it starts traveling back upwards it starts by giving 100% thrust, and at half of it's travel it is giving 50% thrust and finally 0% thrust at the end of it's range, So by the time it is finished traveling back upwards it has twice the momentum as it had when it started to slow down.

    I need the panel to have half of the momentum leaving the extent of the spring's travel as it had when it entered it. In real life this would be caused by the spring pushing half of it's energy into the ground, or whatever it was attached to.

    Both the derivative and delta chips retain their last value when they leave the ranger's max range. I need a way of finding the rate that the ranger's range is changing. It needs to be based on time, so that when the range doesn't change the value will be zero.

    Does anyone have any idea as to what I could use to measure how much, and how fast the ranger's output is changing?

  2. #2
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default Re: help with the math of a spring

    For spring force, the force that will be put on spring is K*X, where K is springs constant, and X is CurrentPos - OriginalPos, that should work..?
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

+ Reply to Thread

Similar Threads

  1. My Math Is Epic
    By Inzuki in forum Wiremod General Chat
    Replies: 24
    Last Post: 10-19-2008, 09:22 AM
  2. Making a exprssion math into cpu math
    By Ronin in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 5
    Last Post: 06-03-2008, 07:09 PM
  3. some math help
    By nanotech fur in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 10-07-2007, 06:45 AM
  4. Math help
    By Crimson in forum Installation and Malfunctions Support
    Replies: 10
    Last Post: 09-22-2007, 10:10 AM
  5. Math Help and How-Tos
    By bprater in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 05-21-2007, 05:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots