Пример #1
0
        public override PhysicsJoint CreateJoint(JointType jointType, PhysicsBody bodyA,
                                                 PhysicsBody bodyB, object[] args)
        {
            if (IsJointSupported(jointType) == false)
            {
                Logger.Warning("Current module does not support " + "the type of joint " + jointType);
                return(null);
            }
            PhysicsJoint joint = new JitterJoint(this, jointType, bodyA, bodyB, args);

            joints.Add(joint);
            return(joint);
        }
Пример #2
0
		public override PhysicsJoint CreateJoint(JointType jointType, PhysicsBody bodyA,
			PhysicsBody bodyB, object[] args)
		{
			if (IsJointSupported(jointType) == false)
			{
				Logger.Warning("Current module does not support " + "the type of joint " + jointType);
				return null;
			}
			PhysicsJoint joint = new JitterJoint(this, jointType, bodyA, bodyB, args);
			joints.Add(joint);
			return joint;
		}