public override void OnMouseUpdate(Vector2 currentPosition, Vector2 positionDelta, Vector2 rawDelta) { if (this.hoverable.IsHovered) { var result = this.sceneGraph.GetElementAt( (int)MathF.Floor(currentPosition.Y / this.sceneGraphRenderer.font.LineSpacing)); if (result.HasValue) { HoveredCrane = result.Value.crane; } } else { HoveredCrane = null; } }
public CraneAgent(IStackingEnvironment world, ICrane crane, IDistribution <double> girderSpeed, IDistribution <double> hoistSpeed, IDistribution <double> manipulationTime) { _world = world; _crane = crane; GirderSpeed = girderSpeed; HoistSpeed = hoistSpeed; ManipulationTime = manipulationTime; _pendingMode = Mode = CraneAgentMode.Work; State = CraneAgentState.Waiting; GoalPosition1 = GoalPosition2 = _crane.GirderPosition; _targetGirderPosition = _crane.GirderPosition; _lastUpdate = world.Now; _mainProcess = world.Environment.Process(Main()); WhenPickupOrDropoffQueue = new List <Event>(); }
public void move(ICrane element) { element.Ropelength = element.Ropelength + 0.2f; }
public SceneGraphNode(int depth, ICrane data) { this.depth = depth; this.crane = data; this.displayName = data.ToString().Split('/')[^ 1];
public void move(ICrane element) { // rotating against the clock is positive // https://www.mathebibel.de/drehmatrix element.Drehwinkel = element.Drehwinkel + 5; }
public void move(ICrane element) { element.Ropeposition = element.Ropeposition - 0.05f; }
public void move(ICrane element) { // rotating with the clock is negative // https://www.mathebibel.de/drehmatrix element.Rotationangle = element.Rotationangle - 5; }
public void move(ICrane element) { // rotating against the clock is positive // https://www.mathebibel.de/drehmatrix element.Rotationangle = element.Rotationangle + 5; }
public void move(ICrane element) { // rotating with the clock is negative // https://www.mathebibel.de/drehmatrix element.Drehwinkel = element.Drehwinkel - 5; }