Attach my sprite with Box2d
- by user919496
I'm coding Javascript(HTML5) with Box2D. And I want to ask how to attach Sprite with Box2D.
This is function My sprite:
function My_Sprite() {
this.m_Image = new Image();
this.m_Position = new Vector2D(0,0);
this.m_CurFrame = 0;
this.m_ColFrame = 0;
this.m_Size = new Vector2D(0,0);
this.m_Scale = new Vector2D(0,0);
…