SSTUTools.SRBNozzleData.updateGimbalRotation C# (CSharp) Method

updateGimbalRotation() public method

Resets the gimbal to its default orientation, and then applies newRotation to it as a direct rotation around the input world axis
public updateGimbalRotation ( Vector3 worldAxis, float newRotation ) : void
worldAxis Vector3
newRotation float
return void
        public void updateGimbalRotation(Vector3 worldAxis, float newRotation)
        {
            //MonoBehaviour.print("updating rotation for angle: " + newRotation);
            Transform modelGimbalTransform = getGimbalTransform();
            modelGimbalTransform.localRotation = gimbalDefaultOrientation;
            modelGimbalTransform.Rotate(worldAxis, -newRotation, Space.World);
        }