Hi,
I have gone through the "hello world" tutorial of Box2D. As a designer who is used to layout of visuals in Flash/Flex, I would like to use the Flash/Flex IDE to layout my stuff first on stage (this object is placed 10 pixel from top, 20 pixel from left, etc.) and then apply physics to these visuals. Meaning initially I as the author would like full/precise control as to where stuff placed on the stage before physics is applied in the world, and from this author layout to physics driven layout should be visually smooth.
As I found out so far, it's hard to associate graphics to bodies http://www.box2d.org/wiki/index.php?title=Linking_graphics_to_bodies_in_Box2D_AS3 pixel precisely. I have to approximate where the displayObject is placed by fine tuning the positions of its physics body.
I hope I am wrong since in one of the demos, I saw objects spin off right from where the mouse is clicked, meaning I could place an object where I want it to be.
Right? Wrong?
I hope this makes sense. Thanks.
I have gone through the "hello world" tutorial of Box2D. As a designer who is used to layout of visuals in Flash/Flex, I would like to use the Flash/Flex IDE to layout my stuff first on stage (this object is placed 10 pixel from top, 20 pixel from left, etc.) and then apply physics to these visuals. Meaning initially I as the author would like full/precise control as to where stuff placed on the stage before physics is applied in the world, and from this author layout to physics driven layout should be visually smooth.
As I found out so far, it's hard to associate graphics to bodies http://www.box2d.org/wiki/index.php?title=Linking_graphics_to_bodies_in_Box2D_AS3 pixel precisely. I have to approximate where the displayObject is placed by fine tuning the positions of its physics body.
I hope I am wrong since in one of the demos, I saw objects spin off right from where the mouse is clicked, meaning I could place an object where I want it to be.
Right? Wrong?
I hope this makes sense. Thanks.