P-152: Virtual World Concept Update 4
I have completed the task of moving the Script platform movement code into C++. This took a lot longer than expected, as I had to change the layout of the code significantly in C++. The system is, however,now much faster and more reliable. I was having issues with the player falling through the platforms while jumping onto them, but this seems to have been resolved.
There are still some bugs that need to be addressed, and a lot of new features to add, including the ability to control the platforms in a manner similiar to a vehicle, but most of the initial work is now done.
This functionality could also be used for things like elevators or lifts, something which has long been missing from stock T3D. It could also be used to create moving platforms or structures of other kinds, spaceships, naval vessels, floating cities, etc etc, these could all be made mobile and walkable with this code. Before now, a vehicle would have to be “mounted” meaning the player could not move around the vehicle, and only the vehicle moves, or the object would move but the player would remain in place, and would eventually fall through the object.
At the moment, I am using a simple script function to update the physics forces acting on all of the objects in the platform structure (For the below demo, there are four connected together). I am sending a direction vector and a magnitude to the function, which is producing a single movement vector, which is sent to C++ to be applied to the objects transform matrix directly.
This is quite an important step forward in this project.