# Roller Coaster calculating speed issue

Edit:

I think I’ve confusing myself and everyone else a bit, and I still don’t understand, so I’m just going to recap, and explain better for anyone that joins.

-The track is a chain of blocks(example shown in the image below)

[Every (speed) seconds, the train lerps to the next piece of track.]

I am trying to make a Roller Coaster system using the TweenService and chained parts, What I’ve tried to work with is the current speed and the angle of the track, but I’ve been told to use Potential and Kinetic Energy.

What I am trying to do is calculate the speed of the train on the next track part.

I think I have the Kinetic Energy and the Potential energy, as you both helped me with, but I don’t know what to do with those values, I tried adding them together as the speed, and all kinds of combinations, but they either didn’t move it at all, or speed it around the track at 1000MPH.
I don’t know what to do, but thank you for trying to help, and I would really appreciate further help.

I believe the math you are looking for is known as the conservation of energy and conversion from potential energy to kinetic energy. This should be the starting point.

The most common example they give is the roller coaster problem:

Thank you for responding, I think I’m stepping in the right direction, I how that kinetic energy = 0.5 * mass * (speed)^2, and potential energy = mass * g * height, and I have an idea now, but I still don’t know how to tie the tracks angle into it.

Since potential energy is constantly changing due to the height of the coaster changing it would have to be a continuous check of the height rather than just relying on the angle of each section of track. If you do it by angle of track then if you have a section of track that’s 5 studs long and vertical the speed would stay the same for that entire 5 stud section and may change drastically at the beginning of the next section of track.

1 Like

I think I’m confusing myself a bit, and I simply don’t understand yet, so I’m just going to recap with you.

-The track is a chain of blocks(shown in the image below)

Every (speed) seconds, the train lerps to the next piece of track.

I think I have the Kinetic Energy and the Potential energy, as you both helped me with, but I don’t know what to do with those values, I tried adding them together as the speed, and all kinds of combinations, but they either didn’t move it at all, or speed it around the track at 1000MPH.
I don’t know what to do, but thank you for trying to help, and I would really appreciate further help.

At the top of the track you would have high Potential energy and low kinetic energy.
At the bottom of the track you’d have high kinetic and low potential enery.
In the real world you’d have to deal with friction of course, but in your case basically
potential energy - kinetic energy = 0 (or a bit higher than 0 so it keeps running)

1 Like