Box2D Forums

It is currently Thu May 23, 2013 10:00 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Feb 20, 2012 2:16 pm 
Offline

Joined: Mon Feb 20, 2012 2:03 pm
Posts: 14
I've just start exploring box2d, it's so much fun! However it seems less popular in the js port? This is what I have so far, somehow world.DestroyJoint() doesn't work for me : ( http://swotong.com/temple.html


Top
 Profile  
 
PostPosted: Mon Mar 05, 2012 1:43 pm 
Offline

Joined: Mon Feb 20, 2012 2:03 pm
Posts: 14
DestroyJoint works fine now....
but another question comes, does anyone know how to SetLocalPosition for polygons? It seems only works for circle, though I can use SetAsOrientedBox but again that's only for box...


Top
 Profile  
 
PostPosted: Tue Mar 06, 2012 12:19 am 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1517
Location: Tokyo
A polygon doesn't really have a position, it only has points. You need to change the location of the points.


Top
 Profile  
 
PostPosted: Tue Mar 06, 2012 12:54 am 
Offline

Joined: Mon Feb 20, 2012 2:03 pm
Posts: 14
I totally forgot that~ thx a lot~
^ _ ^


Top
 Profile  
 
PostPosted: Thu Jul 26, 2012 11:39 am 
Offline

Joined: Thu Jul 26, 2012 11:35 am
Posts: 1
Thanks for sharing.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group