Pathfinding.RVO.Sampled.Agent.BufferSwitch C# (CSharp) Method

BufferSwitch() public method

public BufferSwitch ( ) : void
return void
		public void BufferSwitch () {
			// <==
			radius = Radius;
			height = Height;
			maxSpeed = MaxSpeed;
			neighbourDist = NeighbourDist;
			agentTimeHorizon = AgentTimeHorizon;
			obstacleTimeHorizon = ObstacleTimeHorizon;
			maxNeighbours = MaxNeighbours;
			desiredVelocity = DesiredVelocity;
			locked = Locked;
			collidesWith = CollidesWith;
			layer = Layer;

			//position = Position;

			// ==>
			Velocity = velocity;
			List<ObstacleVertex> tmp = obstaclesBuffered;
			obstaclesBuffered = obstacles;
			obstacles = tmp;
		}