private void DeleteEntityNotificationHandler(DeleteSimulationEntity parameter0) { _robotArm = null; }
private void PopulateWorld() { AddSky(); AddGround(); // AddBlocks(); // Add an overhead camera // AddCamera(); // Create and place the dominos // SpawnIterator(CreateDominos); // Create a LynxL6Arm Entity positioned at the origin var robotArm = new SimulatedRobotArmEntity(RobotArmEntityName, new Vector3(0, 0, 0)); SimulationEngine.GlobalInstancePort.Insert(robotArm); var targetProps = new SphereShapeProperties(0, new Pose(), 0.0025f); var shape = new SphereShape(targetProps); shape.State.DiffuseColor = new Vector4(0.1f, 0f, 1f, 1f); _moveTargetEntity = new SingleShapeEntity(shape, new Vector3(0f, 0.2f, 0.1f)); _moveTargetEntity.State.Name = "Move To Target"; SimulationEngine.GlobalInstancePort.Insert(_moveTargetEntity); }
private void InsertEntityNotificationHandler(InsertSimulationEntity ins) { _robotArm = (SimulatedRobotArmEntity)ins.Body; _robotArm.ServiceContract = Contract.Identifier; }