ChipmunkPolyShape Box Offset
Posted: Mon Nov 26, 2012 7:45 am
Maybe this is a stupid question however I wondered why there is no convenience offset param for:
As ChipmunkCirlceShape has an offset param for the equivalent method.
Code: Select all
/// Create an autoreleased box shape centered on the center of gravity.
+ (id)boxWithBody:(ChipmunkBody *)body width:(cpFloat)width height:(cpFloat)height;
Code: Select all
/// Create an autoreleased circle shape with the given radius and offset from the center of gravity.
+ (id)circleWithBody:(ChipmunkBody *)body radius:(cpFloat)radius offset:(cpVect)offset;