示例#1
0
文件: Part.cs 项目: dewiniaid/krpc
 public Tuple4 Rotation(ReferenceFrame referenceFrame)
 {
     if (ReferenceEquals(referenceFrame, null))
     {
         throw new ArgumentNullException("referenceFrame");
     }
     return(referenceFrame.RotationToWorldSpace(InternalPart.transform.rotation).ToTuple());
 }
示例#2
0
文件: SpaceCenter.cs 项目: krpc/krpc
 public static Tuple4 TransformRotation (Tuple4 rotation, ReferenceFrame from, ReferenceFrame to)
 {
     CheckReferenceFrames (from, to);
     return to.RotationFromWorldSpace (from.RotationToWorldSpace (rotation.ToQuaternion ())).ToTuple ();
 }
示例#3
0
 /// <summary>
 /// Update the text.
 /// </summary>
 public override void Update()
 {
     renderer.enabled            = Visible;
     renderer.transform.position = ReferenceFrame.PositionToWorldSpace(position);
     renderer.transform.rotation = ReferenceFrame.RotationToWorldSpace(rotation);
 }
示例#4
0
 public Tuple4 Rotation(ReferenceFrame referenceFrame)
 {
     return(referenceFrame.RotationToWorldSpace(InternalPart.transform.rotation).ToTuple());
 }
示例#5
0
 public Tuple4 Rotation(ReferenceFrame referenceFrame)
 {
     return(referenceFrame.RotationToWorldSpace(port.nodeTransform.rotation).ToTuple());
 }