- Title: A quick and easy-to-use pendulum engine.
- Description: Simulate pendulum motion
- GM Version: GM8.1
- Registered: Yes
- File Type: .gm81 and .exe
- File Size: 12kB and 4047kB
- File Link: .gm81, .gmk, EXE
Hey guys, it's coollog. Haven't posted in a while, been busy with other stuff. But today, I felt like attempting a pendulum simulation, so I made this and it worked out pretty nicely. This simple script works pretty fast and can be used by anyone with half a coding brain, though it may not be completely accurate.
Also included are three useful scripts I've created called string_to_real (converts a string to a real number), get_real (gets user inputted number), and draw_arc (draws an arc fast and precise). I hope you can find these useful =P.
Check out this bobblehead dancer made with this engine: http://gmc.yoyogames...howtopic=536281
Here's a screenshot of the pendulum simulator in action (actually four):
Here are some configurations for different types of pendulums (post some of your own favorites too )
// A nice balloon forcex = 0; forcey = -10; mass = 1; coefrestore = 0.2; radius = 200;
// Big 'n heavy forcex = 0; forcey = 5; mass = 20; coefrestore = 0.2; radius = 400;
// Ring around the rosy forcex = 0; forcey = 0; mass = 1; coefrestore = 1; radius = 200;
// It's a storm out here! forcex = 5; forcey = 3; mass = 1; coefrestore = 0.5; radius = 300;
Edited by icuurd12b42, 27 July 2012 - 03:07 AM.
removed spoiler tags (AGAIN). dont mess with the template