示例#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);
        }
示例#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;
		}