The TurnTable Constraint simply rotates an object about the up axis at the given speed. This is ideal for making 3D icons or HUDs. You may be wondering why we bothered to package such a simple behavior. We did so because this inherits the constraints framework as is extremely robust and optimized. To start and stop this, simply enable or disable the script or the GameObject. it will automatically start back up from where it stopped when re-enabled. We can also add more features later without the need to alter any other scripts. For example, we could add the ability to use a different axis as the 'up' axis and it would be optional to anyone using this at this point. ![]()
|
Documentation >