geometry - How to determine the radius of a circle from the scale of the sprite? -
i making game sprite of circle( origin set @ center of sprite) being up-scaled , rotated simultaneously. need determine change in radius of circle in relation scaling.how go doing that? scaling do? mean 2x scale mean? mean sprite has twice area previous? btw , using libgdx.
i figured out myself.the problem bounding rectangle of sprite changes in size sprite being rotated.so raidous of circle can not determined using of rectangle @ time. found width of bounding rectangle product of scale , initial width .so can calculate width @ instance if sprite rotating. , radius that.
Comments
Post a Comment