Drawing

77 views
Skip to first unread message

artemeff, Mr. Shatter

unread,
Apr 6, 2012, 3:37:23 PM4/6/12
to Box2dWeb
Hi!

So, I learn this library and I have a question - how can I draw
generated physics?
Give me a hint, please =)

fishbone

unread,
Apr 11, 2012, 7:39:38 AM4/11/12
to Box2dWeb
Hi,

look at the code of b2DebugDraw. You just have to apply the
coordinates and transformations to your sprites. This is just a hint
because I have only used the debug-draw in my projects. There are
other libraries for drawing etc., for instance http://raphaeljs.com/

Cheers,
Uli

On Apr 6, 9:37 pm, "artemeff, Mr. Shatter" <artemev.y...@gmail.com>
wrote:

coreyp...@gmail.com

unread,
Oct 15, 2012, 7:57:18 PM10/15/12
to box2...@googlegroups.com, uli....@googlemail.com
I've got experience with other ports of box2d but this one is a little harder to figure out. There is a SetSprite function for DebugDraw, how do I use that on other objects like wheels and boxes?

shekhars...@gmail.com

unread,
Dec 18, 2012, 9:35:39 AM12/18/12
to box2...@googlegroups.com, uli....@googlemail.com, coreyp...@gmail.com
Check this website -- http://codingowl.com
Reply all
Reply to author
Forward
0 new messages