söndag 23 juli 2017

New Track

A new track was created to make a more exciting roller coaster. The track was created by extruding the three rails along a curve. The supports between the rails were added afterward, using an animation snapshot (like the original technique we used) along the same curve.

The new roller coaster model, imported in Unity.
The track was imported into Unity and the carts were added to see how they would move along the new track. This did not work very well, however, as the carts failed to gain any momentum from the steeper fall in the track. To mitigate this, a script was created which gives the carts a target speed. Triggers were then put at different places on the track which changes the target speed.

Triggers on the track that changes the target speed of a cart.
After this, the Animation worked well. While the movement of the carts is still physically based, it is slightly modified at specific key points of the track to get a more natural animation.

Inga kommentarer:

Skicka en kommentar