Example #1
0
 public Vector3 GetJointPosition(int jointIndex)
 {
     return(ShipAllParts.Find("ShipBase/ManeuverJoints").Find("ManeuverJoint" + jointIndex).Find("Rotation").position);
 }
Example #2
0
 public override Transform GetModelTransform()
 {
     return(ShipAllParts.Find("ShipModels/DRK-1 Probe Droid/ModelCenter/Lights"));
 }
Example #3
0
 public Vector3 GetJointAngles(int jointIndex)
 {
     return(ShipAllParts.Find("ShipBase/ManeuverJoints").Find("ManeuverJoint" + jointIndex).Find("Rotation").eulerAngles);
 }
Example #4
0
 public void ToggleJointArrow(int jointIndex, bool isVisible)
 {
     ShipAllParts.Find("ShipBase/ManeuverJoints").Find("ManeuverJoint" + jointIndex).gameObject.SetActive(isVisible);
 }