dianxiangan32 Posted August 14, 2014 Share Posted August 14, 2014 I scale a sprite. But when I check the collide I found that the it still use the initial volume. My English is poor, I don't know if I have expressed what I want to say properly. Link to comment Share on other sites More sharing options...
lewster32 Posted August 14, 2014 Share Posted August 14, 2014 Scaling a sprite should also scale its body. You can explicitly set the body's size however with body.setSize(width, height, offsetX, offsetY); Link to comment Share on other sites More sharing options...
Wavertron Posted August 14, 2014 Share Posted August 14, 2014 sprite.scale.x/y has no effect on a P2 body size when I use it. Testing in 2.0.7 just now, with both simple rectangle bodies and also complex polygons.Is this suppose to work? Would be great if it did, especially for P2 polygon bodies. Link to comment Share on other sites More sharing options...
lewster32 Posted August 14, 2014 Share Posted August 14, 2014 Oops, not tested it with P2 - I keep forgetting people don't automatically use Arcade! Link to comment Share on other sites More sharing options...
Wavertron Posted August 14, 2014 Share Posted August 14, 2014 Yeah, I just assumed it was for Arcade only when it didnt work for me in P2 Link to comment Share on other sites More sharing options...
Recommended Posts