Top

Physics Engine

Please Register to submit score.
Average Score  7.0
Scores Submitted  4
Date Added  Mar 24, 2008
Last Updated  Mar 24, 2008
Tags  ball  big  bluethen  engine  etc  mirc  phys  physic  physics  script  simple  small  snippet 

Introduction

A very simple physics engine I made in a hour or two. It's not really... accurate, but it has gravity and friction, and you can throw the ball around too. ;o



To install, paste this code into your Remotes (Alt + R)
then type /phys or right click a channel or status window and click "Physics Engine."
Use your mouse to throw the ball around if you like.

Updates:
Fixed the "drawdot error" when closing.
Lowered the hang time a bit.
Now unsets all the variables.

Grab the Code

Comments

  (10)  RSS
mountaindew
Comments: 1299
 
Posted on Mar 24, 2008 4:26 pm
When I x out, I get:
Code:

* /drawdot: invalid window (line 58, script83.mrc)
BlueThen
Comments: 140
 
Posted on Mar 24, 2008 4:52 pm
Ok, fixed.
Gummo
Comments: 96
 
Posted on Mar 25, 2008 6:26 am
Nice work. :)
Eugenio
Comments: 266
 
Posted on Mar 25, 2008 10:23 am
This is annoying....the ball moves weird....and I hate that silly buffer box at the bottom.
Eugenio
Comments: 266
 
Posted on Mar 25, 2008 10:24 am
This is annoying....the ball moves weird....and I hate that silly buffer box at the bottom. Why so Many variables ?!?
BlueThen
Comments: 140
 
Posted on Mar 25, 2008 2:25 pm
The buffer box should be hidden (you'd need 6.21 or higher for that to work), and for such a complicated script, there was no other way to make it work without variables, unless I were to use Hash Tables or INI files.

I tried to make the ball move as realisticly and smoothly as possible, but it was difficult, since I'm only 13 years old, and I have a basic understanding of physics. :/
Phoenix847
Comments: 8
 
Posted on Apr 1, 2008 9:13 pm
Wow, 13 and you're making all these scripts?! Dang kid, this is career you might wanna take with all the scripting like I am. I'm not as good as you with scripting but I know some basics.

But yeah, I like it. The physics of the ball does look a little weird. It seems to drop just quickly after moving a short distance and it does seem a little rough on the moving but doesn't matter. Just try to fix it up a bit on the ball dropping quickly and thats all.
9/10 :]
BlueThen
Comments: 140
 
Posted on Apr 1, 2008 10:06 pm
Thanks. :D It's sort of hard to make it realistic, since I barely even know anything about gravity or friction. Maybe I'll do some research and make it exact next time.
mountaindew
Comments: 1299
 
Posted on Apr 2, 2008 2:21 pm
Well gravitational acceleration = 9.8 m/s2, I don't know if that helps at all :p
Mitchell
Comments: 17
 
Posted on Apr 28, 2008 3:20 pm
very nice script :)
just wondering, but why are the backgrounds of all your scripts appearing white for me?

Please Register or Login to start posting comments.
Bottom