/** Create a body contains a circle shape. */ public static CCPhysicsBody CreateCircle(float radius, CCPhysicsMaterial material, CCPoint offset) { CCPhysicsBody body = new CCPhysicsBody(); body.SetMass(MASS_DEFAULT); body.AddShape(new CCPhysicsShapeCircle(material, radius, offset)); return(body); }
/** Create a body contains a circle shape. */ public static CCPhysicsBody CreateCircle(float radius, CCPhysicsMaterial material, CCPoint offset) { CCPhysicsBody body = new CCPhysicsBody(); body.SetMass(MASS_DEFAULT); body.AddShape(new CCPhysicsShapeCircle(material, radius, offset)); return body; }