P-152: Virtual World Concept Update 8
I have spent several days working on some bug fixes and improvements to the directional levers.
The code that I had was failing when the user tried to move the lever while the platform itself was also moving. In addition to this, the lever would sometimes move in the wrong direction, depending on the players viewing angle in relation to the lever.
This was again a vector math problem. I was using the position of the players eyepoint to calculate the direction and magniture of the movement vector for the lever. As the player was standing on a moving platform, the players position was changing as the player was manipulating the lever, which threw off the calculations. I eventually manged to fix this, and fix the issue with the direction being flipped if the user approached the lever from the opposite side.
Levers now seem to work correctly, but I have not yet wired them up to control the platforms.
This feature needs to be done correctly, since user interaction with the environment is a key feature of this project. I don’t want to have GUI’s or other static or non-immersive gameplay elements, I want the user to have complete control of their environment through emergent means.
