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
Post a Comment