[DEV] Track Teleportation

The majority of my time on the project this week was spent working on adding the ability to have multiple tracks in a scene. I also added simple teleporters to go back and forth between the tracks. We considered making the tracks smoothly split off into two directions, but this solution is much simpler, and with how little time we have left we thought it was the best choice.

2017-05-02_22-46-27

I also spent a while trying to make the player have a constant velocity over the length of the track, regardless of the spline length – a problem we’ve been dealing with since the beginning of the project. To start tackling the problem more efficiently, I decided to add some more info to the screen so I could more easily spot issues.

2017-05-02_23-16-54.png

I displayed the basic movement variables of each player on screen and immediately saw a few things that were off, and fixed them up. As for a constant speed, I have yet to find a clean solution. The problem sounds simple, but there’s something small that I’m missing because it’s still off. Currently we’re multiplying the player’s delta spline value by the ratio between the current segment of the track they are currently on and the total length of the track. I displayed the approximation of the curve lengths to ensure that was working fine.

2017-05-01_19-47-27.png

Hopefully I’ll see the issue soon and can remove the temporary fix thrown in there for now.

-Andrew Weeks

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s