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;
}