2d - 360 degree gravity game mechanic like “They Need To Be Fed” game -
i fan of "they need fed" game , want understand game mechanic @ deeper level. resources basic box2d (or similar) physics behind 360 degree gravity game mechanic ?
first of all, understand how make character orbit circle or box without falling down using box2d or similar physics
from understanding, need set world's gravity 0 , apply centripetal force character.
i have searched around web tutorials ideally answer above questions , perhaps provide additional resources regarding efficiency, camera motion , on haven't found anything.
try using changing gravity
-(void) changegravitybyxvariant:(float) xvariant andyvariant:(float)yvariant{ world->setgravity(b2vec2(xvariant, yvariant)); }
i have tested , works..... can't find easier
Comments
Post a Comment