Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b2DebugDraw is undefined in Javascript version #24

Open
MannyAdumbire opened this issue Aug 3, 2014 · 3 comments
Open

b2DebugDraw is undefined in Javascript version #24

MannyAdumbire opened this issue Aug 3, 2014 · 3 comments

Comments

@MannyAdumbire
Copy link

This is a Great project! but I'm having trouble figuring out how to draw debug data onto the canvas using the included version of liquidfun.js which was updated a month ago.
In the online documentation it says "You can implement the b2DebugDraw "... does this mean it debug drawing hasn't been implemented in this version of liquidrfun?
I'm not savy enough to bend the testbed to my will for use as a debugdraw, and don't want to rewrite the logic to loop through the world and draw debug if something like this already exists, so any help will be much appreciated. :)

@ghost
Copy link

ghost commented Aug 26, 2014

Actually JavaScript version of liquidfun didn't fully implemented. You can see using logging like for
console.log(b2World.prototype).

I urge google guys to implement this project fully in javascript.

@chamberlainpi
Copy link

+1, was dumbfounded when I couldn't enable this (was working perfectly fine from a box2dweb version).
If you do implement this, do it right by providing a set of methods to:

  • SetTransform (x, y, scaleX, scaleY );
  • ClearOnEachFrames( true/false ) (useful for seeing on top of an existing project).
  • alpha control on the shape fills, outline fills, entire context-fill color too.
  • color controls on those fills / outlines.

@dhowe
Copy link

dhowe commented Jun 14, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants