Well I was bored last night and I was messing around with Unix/Linux commands, then I looked around for some 2D physics engines and found Box2D. It had no makefile so I used some simple command line magic to generate all the dirty work IE. get all the paths to the .cpp file and write them to the OBJ line as .o and to make a small install: section in the makefile. Then This morning I decided to test it out. So I made a small sample for the psp. It uses some simple GU with ortho projection to render 4 cubes, Each is controlled by pressing one of the buttons on the right of the psp (cross, circle, square tri). Hold the Button and move the analog to position. (ie the analog auto centers). Use the L and R triggers to rotate. and push start to start and stop the physics simulation.
Note: there are no callbacks in the example so use psplink
http://a-nub.pspsc.com/Box2D.zip[/url]
Box2D Physics Port
Box2D Physics Port
Code: Select all
.øOº'ºOø.
'ºOo.oOº'