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

setTransformIgnoreContacts() public method

For teleporting a body without considering new contacts immediately.
public setTransformIgnoreContacts ( Vector2 &position, float angle ) : void
position Vector2 The position.
angle float The angle.
return void
		public void setTransformIgnoreContacts( ref Vector2 position, float angle )
		{
			_xf.q.Set( angle );
			_xf.p = position;

			_sweep.C = MathUtils.mul( ref _xf, _sweep.LocalCenter );
			_sweep.A = angle;

			_sweep.C0 = _sweep.C;
			_sweep.A0 = angle;

			IBroadPhase broadPhase = _world.contactManager.broadPhase;
			for( int i = 0; i < fixtureList.Count; i++ )
				fixtureList[i].synchronize( broadPhase, ref _xf, ref _xf );
		}