ios - How should I go about scaling my physics body? -


i have physics body needs y scale 0.2. have been using rectangleofsize property define physics body, not sure how change y scale of it. had changed y scale earlier in code, , know if there easier way other having go photoshop , create new image. provide example code if needs me to. thanks!

unfortunately, scaling physicsbody in spritekit cause collisions bugged, recommend create new physicsbody , assign node instead.

as change yscale of node, can call function

node.yscale = yourvalue 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -