Interactive Spring Physics 1.5

Interactive Spring Physics 1.5

by griffpatch

๐Ÿ‘ 34,853 โค๏ธ 1,354 โญ 1,212 ๐Ÿ”„ 59
Created: Apr 20, 2014 Last modified: Nov 26, 2023 Shared: Apr 25, 2014

Description

To Do: 1) Impact Friction, 2) Impact dampening, 3) Solve shapes slipping inside each other issue...? 25 Apr 2014 - v1.5 - Increased speed by adding pre collision bounding box overlap detection. 24 Apr 2014 - v1.4 - Improved stability of low polygon shapes. 24 Apr 2014 - v1.3 - Added distributed impact (= better collision resolution). Added vertical sliders to effect vertical conveyor belts. 23 Apr 2014 - v1.2 - Added 1, 2 and L keys to spawn shapes... Slow with collisions turned on though :( 23 Apr 2014 - v1.1 - Added fixable points (space) 23 Apr 2014 - v1.0 - Added object to object collision detection, plus simplistic initial attempt at collision resolution using axis of least penetration and applying opposing forces. 22 Apr 2014 - v0.4b - Added bitmap overlay (TNT) and an 'L' shaped polygon. 22 Apr 2014 - v0.4 - Added spring dampening to the equations (dramatically improving object stabilization). Added ability to grab an object, swing at about, and throw it! 20 Apr 2014 - v0.3 - Added higher polygon shape and changed to alternative more stable (perhaps) shape construction? 16 Apr 2014 - v0.2 - Added Lower Conveyor Belt Slider. Corrected off screen and partial off-screen drawing of shapes. Improved stability a little... 15 Apr 2014 - v0.1 - How does it work? Each shape is made of a number of nodes, each connected by 2 or more springs to other nodes in the same shape. Each node is affected by gravity, air resistance, contact with the edge of the window and the push or pull of the springs from other nodes. And that's about it! The trick is to find a good balance between sponginess and rigidity of the springs, too spongy and the objects look like jelly, too rigid and the objects can go crazy and glitch out :S

Instructions

Interactive 2D Spring Physics * Drag a corner to manipulate a shape * Tap space while dragging to fix a point (drag again to release) * Slide the sliders to affect the physics engine. * Slide for lower slider to change the speed of the conveyor belt. * Press 'R' to reset the simulation... * Press '1, 2 or L' to spawn new shapes... (SLOW!) Adding collision detection and resolution has (as expected) slowed the whole things down a lot! :( You've probably seen these before on Scratch (Sometimes called Elastic Physics?)... I first wrote one around 14 years ago in Turbo Pascal *grin* - Crazy huh! This is just a quick test to make sure things work fast enough in Scratch. I wanted to add collision detection, that was the aim, but I'm not feeling confident that Scratch can handle the math fast enough.

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

Beat Up! Four (BFDI)

by MarcIglesiasLinares

Project thumbnail
View Project

20th Century Fox Destroyed V3

by kylo1234567

Project thumbnail
View Project

bren319's Alphabet Lore font

by jl381367

Project thumbnail
View Project

Beat Up Bonzi Buddy: DEFINITE EDITION ADD ATTACKS! remix remix remix remix remix remix

by kubakoodziejczak

Project thumbnail
View Project

PBS KIDS System Cue: Marching band + Switcher

by NumberblockFaner303

Project thumbnail
View Project

[AYF] howie scream (4 and a half)

by Unoriginal_Fox

Project thumbnail
View Project

Beat up Edward DLC Remastered (FREDDY JUMPSCARE LOUDER) remix

by xmrrileyxx

Project thumbnail
View Project

Sprunki OC real v3 part 3/3 thumbnail for @BIZorg

by Kiruha73

Project thumbnail
View Project

ใ€ๅ‚พๅ‘1pใ€ใ‚ขใƒ‹ใƒกๅ‚พๅ‘2pใ€‘ใƒใ‚ฟใŒๆ€ใ„ใคใ‹ใ‚“ใใฆไปŠใ“ใ‚Œ ใƒŠใƒซใƒˆใƒ€ใƒณใ‚น๏ผˆๅพฉๅธฐ่จ˜ๅฟต

by kinoko_6349

Project thumbnail
View Project

BFDI Maze

by thefarsidecalendar

Project thumbnail
View Project

้’ใฎๅก”22้šŽ

by sakaryuu

Project thumbnail
View Project

Mario Party - Shy Guy Says

by scratchman2501

Project thumbnail
View Project

Super Mario on Scratch 2 Reboot

by DuckGoose9254

Project thumbnail
View Project

sky ใƒœใƒผใƒซใ“ใ‚ใ“ใ‚9

by skyblueball2

Project thumbnail
View Project

Cuphead Demo 1

by _SkyXiu_

Project thumbnail
View Project

mandelbox fractal raymarching

by -cat5555-

Project thumbnail
View Project

Uncannystart Band Remastered (81-90 +FIXED)

by tvokids4017

Project thumbnail
View Project

Shooting Boss Simulator

by OffsetChannel7

Project thumbnail
View Project

FNF: Expunged is 2D

by sbrorionan

Project thumbnail
View Project

Beat Up Z

by aaroncrist7

Project thumbnail
View Project

FNF Sonic Exe 2.5 +13 Build Test| remix

by HahJosh

Project thumbnail
View Project

3D PAC-MAN Hardcore Edition

by hongkis

Project thumbnail
View Project

talking tom and ben news all-stars

by dexan_sojex

Project thumbnail
View Project

silly 3d game engine i made: the game v1.09

by TheRealXanPro78