public Rudder(uint portNumber, s3DRudderManager sdk) { this.portNumber = portNumber; this.sdk = sdk; axis = new ns3DRudder.Axis(); axisOffset = new ns3DRudder.Axis(); freeze = false; }
/// <summary> /// Returns axis in unity's format (X,Y,Z) /// </summary> /// <returns>Vector3</returns> public Vector3 GetAxis3D(ns3DRudder.Axis pAxis = null) { if (pAxis != null) { return(new Vector3(pAxis.GetXAxis(), pAxis.GetZAxis(), pAxis.GetYAxis())); } GetAxis(); return(new Vector3(axis.GetXAxis(), axis.GetZAxis(), axis.GetYAxis())); }