The kind of sample you want is a bit complicated to explain in a forum thread And is a bit too complicated for most beginners(not saying you are or not). There have been several code projects posted by several programmers that some what work. you can find some in the code archives that deal with rigid body phisics. But nothing really high quality, just something to get started. Brucey converted the Chipmunk phisics library to BlitzMax it should do what you want and more. Again it's a bit complicated for beginners but with a little patience one can learn to use it.
Personally, I would use Chipmunk as it is too compicated to start a phisics engine myself. And why reinvent the wheel?
Personally, I would use Chipmunk as it is too compicated to start a phisics engine myself. And why reinvent the wheel?