Interactive Spring Physics 1.5
by griffpatch
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
Spiffy Pasha's Effects Kit! Redux! remix
by Jmason2023
Incredibox - Sprunki Sinner Edition remix
by RAINERDAY
Beat up Patrick Star remix
by jayjay1i09
Nickelodeon Rewind is cool
by siddharth1717
Beat Up SDYGOTN
by ElijahluvsHoopsSM
(Repost) Silly Sausage Extreme! (Based Off 1998 Bop It Extreme) (Fixed)
by Sprunkifan800
Paint
by Technical-Lorisik
Miner Cat 3 - the return of the cat
by Coltroc
IDFB/BFB Contestant Generator Game remix
by Numberbot10
Beat up Lisa Gaming ROBLOX V2
by anthonymuffin
Friday Night Funkin' [+Story Mode!]
by Houchdj
Numberblocks band 55ths part 1
by 6And57hundedscreator
/NYAN RUN/ v.2.5 #games #all
by _Slimyy_
FNF: Steve (DFJK) remix
by KISSPNG
Scratch大戦争 β版
by kuri-pa-2
Pattt54’s Halloween special #halloween #stories #art #animations #new #music #epic
by Pattt54
make your own battle for space palace
by ScratcherOfBFDI
Beat up Lisa gaming roblox!
by newmyles
My Spanish Lore cast
by wario100
【ライブ】地震情報モニターremix
by manya_0123
Beat up Fake alphabet lore F 2!!!
by DominicIsNOTsus
Beat Up ESPN Logo
by JPPORTUGAL
The FPS Game
by scratch_cat787
(Scrapped Remix) Car Anatomy 2 Vector W8 (1990)
by RA_ALT