In my game I have doors that shrink and grow constantly. It is top down so the doors are just line segments.
The issue I have is resizing this line in Box2D. From what I have read on these forums it is not possible to resize an object while running as Box2D would have no way of knowing that it was resized. Is there any simple way to do this that I am missing?
One method that I saw was creating multiple shapes for each "length" of the door and switching them out as the door is opening or closing. Is this the best method to try? I am just looking for some input before I try to implement this.
The issue I have is resizing this line in Box2D. From what I have read on these forums it is not possible to resize an object while running as Box2D would have no way of knowing that it was resized. Is there any simple way to do this that I am missing?
One method that I saw was creating multiple shapes for each "length" of the door and switching them out as the door is opening or closing. Is this the best method to try? I am just looking for some input before I try to implement this.