Difference between revisions of "API:Krakensbane"

From Kerbal Space Program Wiki
Jump to: navigation, search
(type issue.)
Line 56: Line 56:
 
|args=
 
|args=
 
|desc=sets the frame velocity back to 0m/s. Use this if setting the worldspace velocity of vessels directly.
 
|desc=sets the frame velocity back to 0m/s. Use this if setting the worldspace velocity of vessels directly.
}}
 
{{StaticMethod
 
|returntype=Vector3
 
|returndesc=
 
|name=GetFrameVelocityV3f
 
|args=
 
|desc=Returns the velocity of the Krakensbane velocity frame as a single-precision vector.
 
 
}}
 
}}
 
{{StaticMethod
 
{{StaticMethod
Line 77: Line 70:
 
|name=ResetVelocityFrame
 
|name=ResetVelocityFrame
 
|args=
 
|args=
|desc=Unknown
+
|desc=sets the frame velocity back to 0m/s. Use this if setting the worldspace velocity of vessels directly.
 
}}
 
}}
 
{{Method
 
{{Method

Revision as of 09:51, 21 April 2013

The Krakensbane system is used to overcome the floating point precision errors that occur due to the environment size.

Krakensbane Class

Inherits Implements
  • MonoBehaviour
This article is a stub. You can help KSP Wiki by expanding it.

No summary has been written for this class.

Fields

The following is a list of publically-accessible fields in Krakensbane. This includes protected items, which can be accessed by subclasses.

Signature Description
Vector3d RBVel Unknown
Vector3d excessV Unknown
Vector3d lastCorrection Unknown
float MaxV The value of this is 750f, by default. I'm not sure if its constant.
Vector3d FrameVel Unknown
Vector3d totalVel Unknown

Methods

The following are methods included in Krakensbane.

Signature Description
static Vector3d GetFrameVelocity() Returns the velocity of the Krakensbane velocity frame.
static void ResetVelocityFrame() sets the frame velocity back to 0m/s. Use this if setting the worldspace velocity of vessels directly.
static Vector3d GetLastCorrection() Returns the last velocity correction performed.
static void ResetVelocityFrame() sets the frame velocity back to 0m/s. Use this if setting the worldspace velocity of vessels directly.
void setOffset(Vector3d offset) Unknown