Ejemplo n.º 1
0
 /** Set the max force between two bodies */
 public void SetMaxForce(float force)
 {
     foreach (cpConstraint joint in _info.getJoints())
     {
         joint.maxForce = force;
     }
 }
Ejemplo n.º 2
0
		public void AddJoint(CCPhysicsJointInfo joint)
		{
			foreach (cpConstraint subjoint in joint.getJoints())
			{
				_space.AddConstraint(subjoint);
			}
		}
Ejemplo n.º 3
0
 public void RemoveJoint(CCPhysicsJointInfo joint)
 {
     foreach (var subjoint in joint.getJoints())
     {
         _space.RemoveConstraint(subjoint);
     }
 }
Ejemplo n.º 4
0
 public void AddJoint(CCPhysicsJointInfo joint)
 {
     foreach (cpConstraint subjoint in joint.getJoints())
     {
         _space.AddConstraint(subjoint);
     }
 }
Ejemplo n.º 5
0
		public void removeJoint(CCPhysicsJointInfo joint)
		{
			foreach (var subjoint in joint.getJoints())
			{
				_space.RemoveConstraint(subjoint);
			}
		}