コード例 #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
ファイル: JitterPhysics.cs プロジェクト: whztt07/DeltaEngine
		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;
		}