I'm using WCK and I have Circles bouncing around my screen. If I edit the scaleX and scaleY of a circle it shows the correct size on screen but it still collides with shapes as though it was the original size. How can I get it to update when I change its size? I've tried the following:
Code:
private function updateStressorState(e:ContactEvent):void {
var b:Bullet = e.other.m_userData as Bullet;
if (b)
{
try {
e.target.scaleX = .5;
e.target.scaleY = .5;
e.target.destroy();
e.target.create();
}
catch (e:Error) { };
}
}
var b:Bullet = e.other.m_userData as Bullet;
if (b)
{
try {
e.target.scaleX = .5;
e.target.scaleY = .5;
e.target.destroy();
e.target.create();
}
catch (e:Error) { };
}
}