spilgames / glue

Glue is a JavaScript game engine for making web games that run on desktop and touch devices.
glue-engine.com
Other
10 stars 4 forks source link

Animatable's boundingbox incorrect when it is scaled up #213

Open RikoOphorst opened 10 years ago

RikoOphorst commented 10 years ago

Animatable's bounding box does not get changed when it is scaled up or down with Scalable.

RikoOphorst commented 10 years ago

If you call the Animatable's getDimension(), the Dimension will actually update because getDimension gets the original dimension of the game object and then changes the width of the dimension. This will actually also change the core Dimension of the game object because the BaseObject.getDimension returns a reference to it's dimension, not a proper clone.