Example #1
0
        public static CCPhysicsJointRotarySpring Construct(CCPhysicsBody a, CCPhysicsBody b, float stiffness, float damping)
        {
            CCPhysicsJointRotarySpring joint = new CCPhysicsJointRotarySpring();

            if (joint != null && joint.Init(a, b, stiffness, damping))
            {
                return(joint);
            }

            return(null);
        }
Example #2
0
		public static CCPhysicsJointRotarySpring Construct(CCPhysicsBody a, CCPhysicsBody b, float stiffness, float damping)
		{
			CCPhysicsJointRotarySpring joint = new CCPhysicsJointRotarySpring();

			if (joint != null && joint.Init(a, b, stiffness, damping))
			{
				return joint;
			}

			return null;
		}