ScratchData LogoScratchData
Back to ErnieParke's profile

Physics Playground

ERErnieParke•Created September 18, 2013
Physics Playground
29
24
1227 views
View on Scratch

Instructions

Just my sandbox on physics. In here, you'll find various things, from my ever-developing rope engine (which is planned to go into the Wiki once finished), to black holes. This is more of an simulation then a game, though I hope you'll still enjoy! Also, please post your reactions to how you think the engine works; all feedback is appreciated!

Description

Controls: 1-4 to add a rope 1-4 segments long 5 to add a black hole Other: z to apply a custom horizontal force to the end of the ropes x to jiggle the ropes c to hide/show the cat's stats v to attach a rocket to the ends of the ropes with custom force. b to remove the rockets d to 'erase' black holes f to add TnT ==+==+==+[}==+==+==+[}==+==+==+[}==+==+==()[} Stats: Black holes are assumed to have a mass of 1, with the same being true of the Scratch Cat. Ropes also have a mass of one, with a gravity of 1, and a friction of 0.7, when taunt. Ropes also can pass energy upwards, at a dampening rate of 0.3. The ropes also are a clone of the Scratch Cat; that cuts down on a gravity custom block! When gravity's affect on an object is being computed, the distance is skewed by +2 so as to stop objects from getting velocities of 2,000+. Rockets have no mass, though they are the rope clones, just showing vs. their previous hiding. A fun fact about ropes is that they act like pendulums; who knew! TnT works like a white hole; basically, it figures out its own gravity, reverse it, and calls that the explosion. Due to it being feeble, I made the 'gravity constant' equal 20,000 for explosions. Also, the distance is skewed by 1, not the old 2. ==+==+==+[}==+==+==+[}==+==+==+[}==+==+==()[} Update log: v.0.8.5 brings: 1). A small cut on CPU load with ropes. 2). A test with real-life pendulum physics, which ended up failing. The code is still there, if anyone wants to look, and if they can. 3). A bug fix with deleting black holes. v.0.8.2 brings: 1). I solved a problem that's been giving me a headache for awhile... also, more realistic rope physics. I will be testing out another model for ropes soon. v.0.7.8 brings: 1). Simplified ropes. These scripts will be used in my upcoming Scratch game: Cut the Rope! It won't be my next project though; my Spanish homework/project will be. v.0.7.7 brings: 1). The cat now experiences friction. 2). TnT! Just press f. 3). The key d. v.0.7.4 brings: 1). Improved rope physics; they don't act like a series of springs now, but rather a free falling object&pendulum. 2). Rockets point left if their force is negative; thanks to a friend for suggesting that! 3). A few bug fixes! 4). Next will be d; the delete key! v.0.6.6 brings: 1). Rockets to help me test the rope physics once improved... 2). A few slight changes. v.0.6.5 brings: 1). A few touch ups. v.0.6.4 brings: 1). Improved rope physics! 2). A few new keys; try em! 3). Ropes now reflect their velocity through their color&shade. v.0.5.6 brings: 1). Ropes! v.0.4.0 brings: 1). Gravity, music, and the cat! ==+==+==+[}==+==+==+[}==+==+==+[}==+==+==()[} Credits to: 1). Kevin Macleod for the music! 2). A real life friend for a suggestion.

Project Details

Project ID12494887
CreatedSeptember 18, 2013
Last ModifiedJanuary 20, 2015
SharedOctober 4, 2013
Visibilityvisible
CommentsAllowed