Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
VehiclePhysics.Inertia Class Reference

Classes

class  Settings
 

Public Types

enum  Mode { Mode.Default, Mode.Parametric, Mode.InertiaColliders, Mode.Explicit }
 

Public Member Functions

void Apply (Rigidbody rigidbody)
 
void DoUpdate (Rigidbody rigidbody)
 

Static Public Member Functions

static void ApplyExplicitInertia (Rigidbody rigidbody, Vector3 inertiaTensor, Vector3 inertiaTensorRotation)
 
static void ApplyInertiaFromColliders (Rigidbody rigidbody, Collider[] inertiaColliders)
 
static void ApplyParametricInertia (Rigidbody rigidbody, Vector3 dimensions, float inertiaBias)
 
static Vector3 ComputeBoxInertia (Vector3 dimensions, float mass)
 
static void DrawGizmo (Settings settings, Rigidbody rigidbody)
 
static void VerifyInertiaAndShowWarning (Rigidbody rigidbody)
 

Public Attributes

Settings settings = new Settings()
 

Static Public Attributes

static Color inertiaGizmosColor = GColor.Alpha(GColor.orange, 0.25f)
 
static float lowerLimitRatio = 0.05f
 

Member Enumeration Documentation

Enumerator
Default 
Parametric 
InertiaColliders 
Explicit 

Member Function Documentation

void VehiclePhysics.Inertia.Apply ( Rigidbody  rigidbody)
inline
static void VehiclePhysics.Inertia.ApplyExplicitInertia ( Rigidbody  rigidbody,
Vector3  inertiaTensor,
Vector3  inertiaTensorRotation 
)
inlinestatic
static void VehiclePhysics.Inertia.ApplyInertiaFromColliders ( Rigidbody  rigidbody,
Collider[]  inertiaColliders 
)
inlinestatic
static void VehiclePhysics.Inertia.ApplyParametricInertia ( Rigidbody  rigidbody,
Vector3  dimensions,
float  inertiaBias 
)
inlinestatic
static Vector3 VehiclePhysics.Inertia.ComputeBoxInertia ( Vector3  dimensions,
float  mass 
)
inlinestatic
void VehiclePhysics.Inertia.DoUpdate ( Rigidbody  rigidbody)
inline
static void VehiclePhysics.Inertia.DrawGizmo ( Settings  settings,
Rigidbody  rigidbody 
)
inlinestatic
static void VehiclePhysics.Inertia.VerifyInertiaAndShowWarning ( Rigidbody  rigidbody)
inlinestatic

Member Data Documentation

Color VehiclePhysics.Inertia.inertiaGizmosColor = GColor.Alpha(GColor.orange, 0.25f)
static
float VehiclePhysics.Inertia.lowerLimitRatio = 0.05f
static
Settings VehiclePhysics.Inertia.settings = new Settings()

The documentation for this class was generated from the following file: