Esempio n. 1
0
        public static CCPhysicsJointDistance Construct(CCPhysicsBody a, CCPhysicsBody b, CCPoint anchr1, CCPoint anchr2)
        {
            CCPhysicsJointDistance joint = new CCPhysicsJointDistance();

            if (joint != null && joint.Init(a, b, PhysicsHelper.CCPointToCpVect(anchr1), PhysicsHelper.CCPointToCpVect(anchr2)))
            {
                return(joint);
            }
            return(null);
        }
Esempio n. 2
0
		public static CCPhysicsJointDistance Construct(CCPhysicsBody a, CCPhysicsBody b, CCPoint anchr1, CCPoint anchr2)
		{
			CCPhysicsJointDistance joint = new CCPhysicsJointDistance();
            if (joint != null && joint.Init(a, b, PhysicsHelper.CCPointToCpVect(anchr1), PhysicsHelper.CCPointToCpVect(anchr2)))
			{
				return joint;
			}
			return null;
		}
Esempio n. 3
0
		public static CCPhysicsJointDistance Construct(CCPhysicsBody a, CCPhysicsBody b, cpVect anchr1, cpVect anchr2)
		{
			CCPhysicsJointDistance joint = new CCPhysicsJointDistance();
			if (joint != null && joint.Init(a, b, anchr1, anchr2))
			{
				return joint;
			}
			return null;
		}