Better fps and less laggy: https://turbowarp.org/591826372?fps=60&hqpen English: After clicking on the green flag, wait 2-4 seconds, then the project should be fully functional. Press key „E“ or the button in the top right corner to switch between editor and simulation. You can drag points with the mouse cursor. Press the 'Enter' key to save the scene. Press the „Spacebar“ key to load the scene from the slot specified by the „load scene:“ variable. There is 13 sample scenes. You can acces saved scenes by pressing midle button on the top right. There you can tripleclick them and save them for later. If you want to load the scene from savecode, you can press the down button from the top right menu and enter the text. Use the arrow keys to expand the borders of the playing area. In Editor: To create a point, click where you want to create a point. Click on a point to select/unselect it, all pale blue points are selected. All points can be deselected by pressing the „S“ key To connect the points, select the desired points in the row and then press the „L“ key. Pressing the 'H' key will convert all selected light points to hard points, and vice versa. To delete a point, move the cursor over the point and press the „D“ key. To delete all points, hold „D“ key and press „A“ key (There are other things you can do in the scripts, such as increasing the playing space) Čeština: Po zmáčknutí zelené vlajky vyčkejte 2 až 4 vteřiny, poté bude projekt plně funkční. Zmáčkněte klávesu 'E' nebo tlačítko v pravém horním rohu pro spuštění, nebo pozastavení simulace. Kurzorem můžete kliknutím a držením body táhnout po celé ploše. Zmáčkněte klávesu 'Enter' pro uložení scény ve kterýkoliv moment. Pro načtení uložené scény zmáčkněte klávesu 'Mezerník'. Kterou scénu chcete načíst určíte měněním hodnoty proměnné 'load scene:', v základu je zde 13 scén. K ukládacím kódům jednotlivých scén se dostanete klikáním na druhé tlačítko vpravo ze zhora. Odsud je můžete uložit pomocí trojitého poklepání myší a následném zkopírování do shránky. Pokud chcete tyto kódy načíst, klikněte na dolní tlačítko vpravo nahoře a vložte svůj kód. Pro rozšíření okrajů scény mačkejte šipky na strany, kam okraje potřebujete rozšířit. V Editoru: Pro vytvoření bodu klikněte tam, kam jej chcete umístit Pro vybrání nebo odvybrání bodu na bod klikněte. Označené body jsou značeny bledě modře. Pokud chcete odvybrat všechny body naráz, zmáčkněte klávesu 'S'. Pro propojení bodů linkou vyberte všechny požadované body v pořadí za sebou, jak je chcete mít propojené a zmáčkněte klávesu 'L'. Zmáčknutím klávesy 'H' proměníte všechny volné body na ukotvené a ukotvené na volné. Pro smazání bodu na něj najeďte kurzorem a zmáčkněte klávesu 'D'. Pro smazání všech bodů zmáčkněte klávesu 'D' a 'A' zároveň. Užijte si používání projektu (Je zde ještě řada dalších možností přístupná v kódu, ale je zbytečně komplikovaná na vysvětlení)
The core of the physical simulation is 80% created according to the following tutorials: At 2024 i have to say that the project is broken, i’ll try to do something with it :’D Verlet Integration: https://cowboyprogramming.com/2007/01/05/blob-physics/ https://youtu.be/3HjO_RGIjCU https://youtu.be/pBMivz4rIJY https://youtu.be/tAd7ttKbugA Collision Scripts: http://www.jeffreythompson.org/collision-detection/line-line.php FPS counter: https://youtu.be/94Keu_DUc0I Ps: This collision system is fully my idea, according that it’s behave :D. Thanks to: @12IronMan for sparking the idea @JohnSmith25 for direction to x,y-positions script @XYZ_Test for distance to x y script @Scz_Man for creating this project Use With Credits! Future plans: -Improvements to collision script. -GUI -Graphics owerlayer mesh (in progress) Changelog: - 28.06.2023 - Added "save" and " load" button - 09.05.2022 - Added editor mode toggle button - 02.04.2022 - Small camera X and Y bug fix - 31.10.2021 - Small Improvements to save/load Scene scripts - 30.10.2021 - Project was shared Tags: #2D #Physics #Simulation #Simple #Collisions #Softbody #Verlet #Integration