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

Public Types

enum  TankerShape { TankerShape.Sphere, TankerShape.Cylinder, TankerShape.Box }
 

Public Member Functions

void OnAfterDeserialize ()
 
void OnBeforeSerialize ()
 

Static Public Member Functions

static float BoxRadius (Vector3 semiAxes, Vector3 dir)
 
static float ContainerRadius (TankerShape tankerShape, Vector3 semiAxes, Vector3 direction, float fillLevel)
 
static float CylinderRadius (Vector3 semiAxes, Vector3 dir)
 
static float EllipseHorizontalSemiChord (float a, float b, float y)
 
static float EllipseRadius (float a, float b, float x, float y)
 
static float EllipsoidRadius (Vector3 semiAxes, Vector3 dir)
 
static float RectangleRadius (float a, float b, float x, float y)
 

Public Attributes

float fillLevel = 0.2f
 
float maxCargoMass = 1000.0f
 
TankerShape tankerShape = TankerShape.Cylinder
 
Vector3 tankerSize = new Vector3(1.8f, 1.5f, 4.0f)
 
float viscosityFactor = 0.0f
 

Properties

Joint joint [get]
 
Vector3 localPosition [get, set]
 

Member Enumeration Documentation

Enumerator
Sphere 
Cylinder 
Box 

Member Function Documentation

static float VehiclePhysics.VPLiquidCargo.BoxRadius ( Vector3  semiAxes,
Vector3  dir 
)
inlinestatic
static float VehiclePhysics.VPLiquidCargo.ContainerRadius ( TankerShape  tankerShape,
Vector3  semiAxes,
Vector3  direction,
float  fillLevel 
)
inlinestatic
static float VehiclePhysics.VPLiquidCargo.CylinderRadius ( Vector3  semiAxes,
Vector3  dir 
)
inlinestatic
static float VehiclePhysics.VPLiquidCargo.EllipseHorizontalSemiChord ( float  a,
float  b,
float  y 
)
inlinestatic
static float VehiclePhysics.VPLiquidCargo.EllipseRadius ( float  a,
float  b,
float  x,
float  y 
)
inlinestatic
static float VehiclePhysics.VPLiquidCargo.EllipsoidRadius ( Vector3  semiAxes,
Vector3  dir 
)
inlinestatic
void VehiclePhysics.VPLiquidCargo.OnAfterDeserialize ( )
inline
void VehiclePhysics.VPLiquidCargo.OnBeforeSerialize ( )
inline
static float VehiclePhysics.VPLiquidCargo.RectangleRadius ( float  a,
float  b,
float  x,
float  y 
)
inlinestatic

Member Data Documentation

float VehiclePhysics.VPLiquidCargo.fillLevel = 0.2f
float VehiclePhysics.VPLiquidCargo.maxCargoMass = 1000.0f
TankerShape VehiclePhysics.VPLiquidCargo.tankerShape = TankerShape.Cylinder
Vector3 VehiclePhysics.VPLiquidCargo.tankerSize = new Vector3(1.8f, 1.5f, 4.0f)
float VehiclePhysics.VPLiquidCargo.viscosityFactor = 0.0f

Property Documentation

Joint VehiclePhysics.VPLiquidCargo.joint
get
Vector3 VehiclePhysics.VPLiquidCargo.localPosition
getset

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