Motion in a straight line and in a plane
Free fall
Section titled “Free fall”Drop a ball and it speeds up. Not gradually faster and faster in a vague way: its speed grows by the same 9.8 m/s every second. Watch the velocity graph in the playground. It is a straight line, and its slope is . The position graph is a parabola because distance grows with the square of time.
With and acceleration downward,
So a ball dropped from height lands after with speed . Doubling the height does not double the time: it multiplies it by .
The engine integrates Newton’s second law with velocity Verlet, which is exact for constant acceleration, so the
landing position is reproduced to round-off at any time step. The ground is a contact with restitution zero, so the
ball stops instead of bouncing. Test: projectile_is_exact_at_any_step in soliton-mechanics.
Ball thrown upward
Section titled “Ball thrown upward”The ball slows down on the way up, stops for an instant at the top, and falls back. The trap is to think the acceleration is zero at the top. It is not. The velocity is zero there, but it is changing at 9.8 m/s² the whole time, which is exactly why the ball does not stay up.
Maximum height when : at . The flight is symmetric, so the total time is and the ball returns at speed .
Same integrator as free fall. The acceleration readout in the playground stays at 9.8 m/s² through the top, which is the point of the lesson.
Projectile
Section titled “Projectile”A projectile is two motions happening at once that do not know about each other. Horizontally nothing pushes or pulls, so the horizontal speed never changes. Vertically it is a ball thrown upward. Put them together and the path is a parabola. Tilt the launch angle in the playground: 45° gives the longest range, and angles equally above and below 45° land in the same place.
With launch speed at angle ,
Time of flight , range , maximum height .
The ground is a half-plane contact. The engine reports the landing as a contact_begin event, visible in the event log.
Impact timing is located to within one time step, so the landing time is accurate to a millisecond at the default step.
Projectile from a cliff
Section titled “Projectile from a cliff”Launched from a height, the projectile has further to fall, so it stays in the air longer and travels further. Try a negative angle: throwing downward from a cliff. And try launching horizontally: a bullet fired horizontally and a bullet dropped from the same height hit the ground at the same moment.
The vertical motion is . Setting gives a quadratic whose positive root is the flight time,
and the range is . Energy conservation gives the landing speed regardless of angle.
The cliff is a static polygon and the ground a half-plane. Both are contacts the engine handles the same way.
Stopping distance
Section titled “Stopping distance”A block sliding across a rough floor loses speed at a steady rate until it stops. The surprise is in how far it goes. At twice the speed it does not slide twice as far but four times: it has twice the speed to lose, which takes twice as long, and it is moving twice as fast on average while it does. This is why a car at 100 km/h needs four times the braking distance of one at 50.
Kinetic friction gives a steady deceleration , whatever the mass. From with :
The floor’s friction is found at each step from the contact, not put in as a formula, and the distance comes out to a part in a million. The energy tab shows the block’s kinetic energy moving into “dissipated” joule for joule: the work friction does is .
Projectile on an incline
Section titled “Projectile on an incline”Throw a ball up a hillside and it lands sooner than it would on level ground, because the ground comes up to meet it. The best angle is no longer 45°. It is halfway between the slope and straight up: on a 30° hill, 60° above the horizontal. Drag the launch arrow and watch the range grow to its greatest value, shown beside it, and shrink again.
Take the slope at angle and launch at above the slope, so at above the horizontal. Measuring along and across the slope, gravity has components and , and the ball returns to the slope when its motion across it is used up:
The range is greatest when , and then .
The slope is a fixed triangle and the ball a body that touches it once. The ball starts 2 mm clear of the slope so that it begins in free flight, which adds a few ten-thousandths of a second to the time of flight. The landing point is found by working back from how far the ball had sunk in when the contact was noticed.
Uniform circular motion
Section titled “Uniform circular motion”A stone whirled on a string, seen from above on a smooth table. Its speed never changes, yet it is accelerating all the time, because its direction keeps changing. Left alone it would go in a straight line; the string keeps pulling it off that line, always towards the centre.
Look at the two arrows: velocity along the circle, the string’s pull across it, at right angles. A force at right angles to the motion changes direction and nothing else, so the stone neither speeds up nor slows down, and the string does no work.
For speed on a circle of radius :
Double the speed and the string must pull four times as hard.
The string is a constraint on length, not a force law: the engine finds each step the tension that keeps the stone at distance , and reports it. Nothing tells it about . Speed and radius hold to round-off and the tension matches to a part in 100 000.
This view is from above, so gravity points into the screen and does nothing in the picture. Motion in a horizontal circle seen from the side, such as a conical pendulum or a car on a banked road, needs the third dimension and is not in this engine.