Description: We all sean simple phisics endgines in VB work whith balls in a sqare box(Form).Boxes are too boring to me so i made one that works on a bitmap mask.
I was too lazy to put in some good graphics code so i just used a picturebox,wich was amazingly fliker free.
Also a good feture in it is drawing walls while simulation is runing.
Camera auto scrools to the ball when simulation is runing its movement is also smothend by a simple eqasion.
Comands:
Left Click = draw wall
Left Click + Shift = erase wall (caution: this works on exsiting mask too)
Midle Click+ Drag = Scroll
Right Click = move ball to cursor
Oh and leave some coments.
This file came from Planet-Source-Code.com...the home millions of lines of source code
You can view comments on this code/and or vote on it at: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=67077&lngWId=1
The author may have retained certain copyrights to this code...please observe their request and the law by reviewing all copyright conditions at the above URL.