jkm Posted September 2, 2019 Share Posted September 2, 2019 https://gyazo.com/4a44909a40952ac6f5182d328f55d754 I've spent more time than I care to admit figuring it all out. I'm calculating a convex hull around a sprite and then slicing it up into matterjs driven little orc pieces. I'm not very happy with one thing yet. Each of these pieces is a separate Sprite and it has it's own Graphics object as a mask. I feel that if I were to have a couple of these going at the same time rendering could get expensive. Teach me to do better I should be learning react or something to get a dev job, but here I am cutting up orcs. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 2, 2019 Share Posted September 2, 2019 new PIXI.Texture(oldTexture, new PIXI.Rectangle(x,y,w,h)); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.