private static SimulationSceneDescription CreateObstacleJumpScene() { var groundPos = new Vector3(0.476771f, -4.8f, -2.61f); var groundScale = new Vector3(1000000f, 9.56f, 29.8f); var groundTransform = new Transform(groundPos, groundScale); var ground = new Ground(groundTransform); var rightWallPos = new Vector3(40f, -4.8f, -2.61f); var leftWallPos = new Vector3(-41.73f, -4.8f, -2.61f); var rightWallScale = new Vector3(10000f, 35.78f, 29.8f); var leftWallScale = new Vector3(10000f, 35.78f, 29.8f); var rightWall = new Wall(new Transform(rightWallPos, 90f, rightWallScale)); var leftWall = new Wall(new Transform(leftWallPos, 90f, leftWallScale)); var obstacleSpawnerPos = new Vector3(31.1f, 4.41f, 0f); var obstacleSpawner = new RollingObstacleSpawner(new Transform(obstacleSpawnerPos, 180f)); return(new SimulationSceneDescription { Version = 1, Structures = new IStructure[] { ground, leftWall, rightWall, obstacleSpawner }, DropHeight = 0.5f, CameraControlPoints = flatGroundControlPoints }); }
public RollingObstacleSpawnerBuilder(RollingObstacleSpawner structure) { this.structure = structure; }