Getting it together

We had our weekly Quality Time meeting with Marcus today and we was not satisfied with our work since the lest meeting. Hopefully this will be a good motivator for the entire group.

Today i worked on adjusting the RPM slider. My first version had the slider button to be placed at the same X coordinate as the current rotation speed divided by a thousand. This worked for a simple test to make sure the slider could move from input but also meant that the slider started almost at zero (the rotation speed starts at 33) and would not reach max until the rotation speed reached several hundred. I solved this by adding a original  float value.

Position = 139.0f;

By dividing this by 1000 the button was set to the middle of the slider, now i just needed to make it move again. Just adding the rotations would make the button be uneven(unless i lowered the original Position) so i subtracted 33 from the rotation speed before dividing it. After that i experimented with the the dividing value to make the button only move between the confines of the slider.

Also to be noted i added limits to how high and low the rotation speed could go. It is now starting at 33 and goes as high as 53 and as low as 13, i adjusted the scroll speed to be playable with a mouse rather than the RPM toggle the final controller will have so the scrolling value will have to be changed in the future but it’s good for testing.

My slider position in the end is this.

void Update () {
       gameObject.transform.position = new Vector3(position / 1000 + (Variables.rotation_speed – 33) / 150, 0.82f, 0.0f);
}

I also made sure the rest of the HUD would only be present during game play and not in menus where they would be showing their standard texts.

In the end of the day i started looking into importing the player character model into the game, getting the model in was simple but reaching the included animations was a bit harder and i will be working with that tomorrow.