Friday, December 18, 2015

Continuously Rolling

Phew! Today was certainly a difficult day. I nearly lost an important scene file when trying to work on changing levels; looks as if the command receiver and controller did not want to be turned into a prefab, and a backup copy thankfully saved me.

As for progress today, I was tasked with working on a rolling ball application. The main portion of this application is to impose infinite rolling (I would think for now) with effects from rewards that would benefit the ball (keeping on the path? Bouncing?). Oddly enough, I'm experiencing odd issues and a delay on how long it takes for the program to receive JSON commands; this might be attributed to odd issues I'm experiencing with random Python errors (greenlet.py) that I run into.

As for the infinite rolling, I decided to setup a set of three strips of land (similar to a scrolling background) and had the ball roll along those strips. By placing the strips in the exact right locations and using a trigger teleportation script, the ball now rolls infinitely along the same three strips of land without making it look as if it's interrupting its movement.

Due to the odd issues involving trying to get the program to actually receive commands, I decided a simple reward output that didn't necessarily approach an end state with such peril would be necessary, so I put in a simple bounce. Like the CharacterController in Unity, the ball requires a raycast to consistently detect a ground area; I figured that raycast would only be necessary when a reward is thrown, reducing the amount of possibly costly calls.

What next? I'll have to get ahold of my supervisor and see what else I can work on.


No comments:

Post a Comment