FarseerPhysics.Dynamics.World.addJoint C# (CSharp) 메소드

addJoint() 공개 메소드

Create a joint to constrain bodies together. This may cause the connected bodies to cease colliding.
public addJoint ( Joint joint ) : void
joint FarseerPhysics.Dynamics.Joints.Joint The joint.
리턴 void
		public void addJoint( Joint joint )
		{
			Debug.Assert( !_jointAddList.Contains( joint ), "You are adding the same joint more than once." );

			if( !_jointAddList.Contains( joint ) )
				_jointAddList.Add( joint );
		}

Usage Example

예제 #1
0
파일: JointFactory.cs 프로젝트: prime31/Nez
		public static RevoluteJoint CreateRevoluteJoint( World world, Body bodyA, Body bodyB, Vector2 anchor )
		{
			var localanchorA = bodyA.getLocalPoint( bodyB.getWorldPoint( anchor ) );
			var joint = new RevoluteJoint( bodyA, bodyB, localanchorA, anchor );
			world.addJoint( joint );
			return joint;
		}
All Usage Examples Of FarseerPhysics.Dynamics.World::addJoint