日本語の説明は下にあります English Please run this in TurboWarp ↓ https://turbowarp.org/1068034014?fps=60&hqpen 【Settings】 Press the Space key to open settings. Mode 0: Ball – Touch/click and hold the screen to determine the throwing direction and speed. Release to throw. 1: Wall – Touch/click and drag on the screen, then release to add a wall. 2: Delete – Touch/click an object you want to remove. 3: Move Object – Touch/click an object to grab and hold it. 4: Joint – Touch/click the objects you want to connect to attach them together. 5: Multiple Balls – Touch/click and drag on the screen to spawn balls in a line. 6: Rope – Touch/click and drag on the screen to spawn a rope made out of balls. Size, Mass, Rigidity Set the size, mass, and rigidity (stiffness) of the objects you spawn. g The strength of gravity. playbackSpeed The playback speed of the physics engine. Increasing this makes it run faster, but calculation accuracy will drop, making objects more likely to clip/pass through each other. R, G, B Color settings for the spawned objects. R is Red, G is Green, and B is Blue; combine these to create a variety of colors. FPS The currently running FPS (Frames Per Second). Please input this so that the physics engine operates correctly. 【Keyboard Controls】 Hold M + Drag: Move the camera. Mouse Scroll Wheel: Zoom in and out. Hold T + Number Key: Open a template. P: Pause and play the physics engine. Z: Delete the last placed object (Undo). R: Clear everything. 日本語 TurboWarpで実行して下さい↓ https://turbowarp.org/1068034014?fps=60&hqpen 【設定】 スペースで設定 『モード』 0:ボール 画面にタッチしながら投げる方向と速度を決定 離して投げる 1:壁 画面にタッチしながらスライドして離して壁を追加 2:削除 削除したいオブジェクトにタッチして削除 3:オブジェクトの移動 オブジェクトにタッチして持つ 4:ジョイント くっつけたいオブジェクトをそれぞれタッチしてくっつける 5:複数のボール 画面にタッチしながらスライドして線状にボールを出す 6:ひも 画面にタッチしながらスライドしてボールでできたひもを出す 『大きさ、質量、剛性』 出すオブジェクトの大きさ、質量、剛性を設定 『g』 重力の大きさ 『playbackSpeed』 物理エンジンの再生速度 大きくすると早くなるけど計算精度が落ちるため、すり抜けやすい 『R、G、B』 出すオブジェクトの色の設定 Rは赤、Gは緑、Bは青で、これを組み合わせてさまざまな色を作る 『FPS』 現在実行中のFPS 物理エンジンを正常に動作するために入力して下さい 【キーボード説明】 Mを押しながら画面をスライドしてカメラ移動、マウススクロールで拡大縮小 Tを押しながら番号を押してテンプレートを開く Pで物理エンジンの停止、再生 Zで一つ前に置いたオブジェクトの削除 Rで全消し
English 【The Most Important Controls】 Above all, the essential controls to remember are: Hold T + Number Key: View templates Spacebar: Open settings Hold M + Drag: Move the camera (Mouse Scroll Wheel to zoom in/out) Template Descriptions I've set up these templates to demonstrate different physics concepts! T + 1 Key: Pinball (Galton Board). The initial state changes slightly every time you restart. It might be a bit hard to see, but the balls pile up more in the middle, forming a normal distribution. T + 2 Key: Pendulum. The rope behaves somewhat like a rubber band and, due to the nature of this physics engine, the motion gradually dampens. By the way, if you increase the gravity, the pendulum's period becomes shorter. T + 3 Key: Monkey and Hunter. This demonstrates that if you drop a ball from a height and simultaneously throw another ball directly at it, they will always collide regardless of the throwing speed. The initial throwing speed is randomized, but you can see that they will always hit each other. T + 4 Key: Ball Collisions. You can observe how objects behave when they collide within this physics engine. T + 5 Key: Water Simulation. This recreates water-like behavior using a massive amount of balls. You can play around by adding more balls or moving them. T + 6 Key: Bullet-like Simulation. You can observe how objects shatter and scatter upon impact. T + 7 Key: The Target Object. This loads the object used in the bullet simulation so you can try throwing balls at it yourself! 【Additional Notes】 Mass: Objects with a mass of 0 will remain completely stationary by design. Energy & Friction: Energy is lost when objects collide. However, there is no air resistance or friction in this simulation. Performance: Spawning a rope or multiple balls while the "Size" is set to 0 will cause lag and slow down processing. 日本語 とにかく大事な操作は 「Tキー+番号キー」でテンプレートを見る 「スペース」で設定 「Mキー」を押しながらスライドして移動、マウススクロールで拡大縮小 【テンプレートの説明】 テンプレートは物理に関わるようなものにしました! 「T+1キー」 ピンボールです。やり直すごとに初期状態が若干変わります。わかりにくいかもですが、真ん中の方がボールの数が多くなっていて、正規分布の形になっています。 「T+2キー」 振り子です。ひもはゴムのように振る舞っていて、この物理エンジンの性質上、減衰していきます。ちなみに重力を大きくすると周期が短くなります。 「T+3キー」 モンキーハンティングです。高くからボールを落とすと同時に、そのボールに向けて別のボールを投げるとどんな速度で投げても必ず当たるというものです。初期のボールを投げる速度はランダムですが、必ず当たることが確認できます。 「T+4キー」 ボールの衝突です。この物理エンジン上での衝突時の挙動を確認できます。 「T+5キー」 大量のボールで水のようなのを再現したものです。ボールを追加たり、動かしたりして遊べます。 「T+6キー」 銃弾のようなもののシミュレーションです。どのように弾けるのかを確認できます。 「T+7キー」 銃弾のようなもののシミュレーションで使った物体です。自分でボールを投げてみましょう! 【補足】 質量0のオブジェクトは静止するという仕様があります。また、衝突によって物体のエネルギーが失われます。空気抵抗や摩擦はありません。大きさを0にした状態でひもや複数のボールを出すと処理が重くなります。