FarseerPhysics.Dynamics.Body.shouldCollide C# (CSharp) Method

shouldCollide() private method

This is used to prevent connected bodies from colliding. It may lie, depending on the collideConnected flag.
private shouldCollide ( Body other ) : bool
other Body The other body.
return bool
		internal bool shouldCollide( Body other )
		{
			// At least one body should be dynamic.
			if( _bodyType != BodyType.Dynamic && other._bodyType != BodyType.Dynamic )
				return false;

			// Does a joint prevent collision?
			for( JointEdge jn = jointList; jn != null; jn = jn.next )
			{
				if( jn.other == other )
				{
					if( jn.joint.collideConnected == false )
						return false;
				}
			}

			return true;
		}