Madclaws Posted December 22, 2017 Share Posted December 22, 2017 hi guys, Why there is no collision mask (like in construct 2d) in phaser.I think that will be a good feature. Link to comment Share on other sites More sharing options...
Papz Posted December 22, 2017 Share Posted December 22, 2017 Look at this https://samme.github.io/phaser-examples-mirror/arcade physics/masked collision.html Link to comment Share on other sites More sharing options...
in mono Posted December 22, 2017 Share Posted December 22, 2017 13 minutes ago, Papz said: Look at this https://samme.github.io/phaser-examples-mirror/arcade physics/masked collision.html I don't think it's about that. I think it's basically about telling "this group should collide with this group, but not with the other one". From what I know, it's available in p2, but not in arcade. I might be wrong, of course. Link to comment Share on other sites More sharing options...
Madclaws Posted December 22, 2017 Author Share Posted December 22, 2017 hi @Papz, Above example is about masking the sprite(making invisible when the sprite goes down).I'm talking about collision polygon/collision mask for better collision, when we use shapes like hexagon,triangle etc.. Link to comment Share on other sites More sharing options...
Madclaws Posted December 22, 2017 Author Share Posted December 22, 2017 (edited) hi @in mono, i know that feature is in p2 .But including p2 just for that collision polygon is inefficient for me Edited December 22, 2017 by Madclaws need much for clarity Link to comment Share on other sites More sharing options...
Papz Posted December 22, 2017 Share Posted December 22, 2017 @Madclaws (hello) Sry i think you want that. Link to comment Share on other sites More sharing options...
Madclaws Posted December 22, 2017 Author Share Posted December 22, 2017 i was saying ,if we could import that collision polygon feature from p2 to arcade,then it will be nice. Papz 1 Link to comment Share on other sites More sharing options...
in mono Posted December 22, 2017 Share Posted December 22, 2017 13 minutes ago, Madclaws said: i was saying ,if we could import that collision polygon feature from p2 to arcade,then it will be nice. I haven't looked at the source, but I guess the two systems are pretty different in how they work, so I doubt you can just grab one feature from one of them and make it work with the other. Link to comment Share on other sites More sharing options...
Madclaws Posted December 23, 2017 Author Share Posted December 23, 2017 @in mono What i was trying to say was if we could implement colliision polygon(or somewhat emulate) it in arcade will be nicer. Link to comment Share on other sites More sharing options...
Recommended Posts