blackhawx Posted October 3, 2018 Share Posted October 3, 2018 If I have a sprite or a shape or a graphic that is 100px in width & height, is it possible with Phaser to set the collision boundary of that game object at 90px, rather than at 100px? [Yes, I want a little overlap before the object realizes its colliding with something else.] If so, which Phaser Class or Methods should I look into to give me that property? Link to comment Share on other sites More sharing options...
rich Posted October 3, 2018 Share Posted October 3, 2018 You talking about for input detection or physics? Link to comment Share on other sites More sharing options...
blackhawx Posted October 3, 2018 Author Share Posted October 3, 2018 physics Link to comment Share on other sites More sharing options...
rich Posted October 3, 2018 Share Posted October 3, 2018 http://labs.phaser.io/index.html?dir=physics/arcade/&q= Look at the 'larger bounding box' and 'smaller bounding box' examples. blackhawx 1 Link to comment Share on other sites More sharing options...
blackhawx Posted October 3, 2018 Author Share Posted October 3, 2018 Nice!!!! Thanks Link to comment Share on other sites More sharing options...
Recommended Posts