Beispiel #1
0
        // static PhysicsJointFixed* ruct(PhysicsBody* a, PhysicsBody* b,  cpVect anchr);

        #region PUBLIC FUNC

        public static CCPhysicsJointLimit Construct(CCPhysicsBody a, CCPhysicsBody b, CCPoint anchr1, CCPoint anchr2, float min, float max)
        {
            CCPhysicsJointLimit joint = new CCPhysicsJointLimit();

            if (joint != null && joint.Init(a, b, anchr1, anchr2, min, max))
            {
                return(joint);
            }

            return(null);
        }
Beispiel #2
0
		// static PhysicsJointFixed* ruct(PhysicsBody* a, PhysicsBody* b,  cpVect anchr);

		#region PUBLIC FUNC

		public static CCPhysicsJointLimit Construct(CCPhysicsBody a, CCPhysicsBody b, CCPoint anchr1, CCPoint anchr2, float min, float max)
		{
			CCPhysicsJointLimit joint = new CCPhysicsJointLimit();

			if (joint != null && joint.Init(a, b, anchr1, anchr2, min, max))
			{
				return joint;
			}

			return null;
		}