Пример #1
0
        /** 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);
        }
Пример #2
0
		/** 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;
		}