TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Anchor Physics Simulator in JavaScript

94 pointsby pjamaabout 8 years ago

5 comments

strainerabout 8 years ago
From an oversimplified perspective, I reckon Euler and Verlet and Leapfrog integration are quite basic and quite similar. Euler is the simplest imaginable scheme (ignoring fine math insights) of step by step calculations of position, velocity, acceleration.<p>Leapfrog is the same process as Euler integration, except the velocity values are initially nudged to set their state to the middle of the update timestep so that when the timestep is applied from t to t+1, the velocity applied is middle&#x2F;average of that step (at t+0.5)<p>Verlet integration noted by this project, seems to be essentially Leapfrog integration, while not storing velocity data explicitly-separately from position information.<p>From a programming perspective, these seem to be very basic and similar integration schemes which can be overcomplicated by mathematical descriptions. I have programmed and used leapfrog basically. The Rebound engine includes some tasty looking advanced integration schemes where the fine math seems more necessary to grasp what is being calculated.
FLUX-YOUabout 8 years ago
&gt;this._boat = new Boat(); &#x2F;&#x2F; I wish it were this easy.<p>You and me both
notumabout 8 years ago
Adjusting chain weight makes the chain stretch, is this detail outside of the scope of this demo?
评论 #14365529 未加载
GrumpyNlabout 8 years ago
Make the water deep enough (max depth) and it will drag.
评论 #14365996 未加载
Safety1stClydeabout 8 years ago
Just set the wind and depth to maximum to make it drag.