forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Box2D Physics Port

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
a_noob



Joined: 17 Sep 2006
Posts: 97
Location: _start: jr 0xDEADBEEF

PostPosted: Sat Mar 22, 2008 10:27 am    Post subject: Box2D Physics Port Reply with quote

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]
_________________
Code:
.øOº'ºOø.
'ºOo.oOº'
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group