Open GoogleCodeExporter opened 8 years ago
At this point, you have to call draw() yourself manually, either in a
POST_UPDATE listener, or by overriding qb2Object::update().
I'm still trying to think of a clean way to integrate draw() automatically.
Let me know if you have any ideas.
Original comment by doug...@gmail.com
on 29 May 2011 at 3:11
tried to override draw, but it seems it's not being called at all, trying to go
with POST_UPDATE but where is the should I draw things? drawDebug gets
graphics:srGraphics2d to draw onto, but with POST_UPDATE ? or must I do it my
own personal way ?
Original comment by *...@forever-entertainment.com
on 30 May 2011 at 8:45
Hi,
Sorry for the delay.
You have to provide your own graphics context to draw into, and then call draw
manually with this context. Nothing is done automatically for you. drawDebug
uses the world's debugDrawContext and everything is automatic.
Using draw()/drawDebug has been a point of confusion for many people, so I will
definitely put some though into how to achieve a clean drawing system, and
leave this issue open until I implement something.
Original comment by Agnes.Kr...@gmail.com
on 1 Jun 2011 at 3:46
Original issue reported on code.google.com by
t.wisnie...@gtempaccount.com
on 28 May 2011 at 5:15