Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Attributes | Properties | List of all members
PSpaceObject Class Referenceabstract
Inheritance diagram for PSpaceObject:
PAsteroid PComet

Public Member Functions

void Awake ()
 
void SetMaterialColor (string name, Color value)
 
void Setup (Mesh visualMesh, Material visualMaterial, string visualLayer, string visualTag, Mesh colliderMesh, PhysicMaterial colliderMaterial, string colliderLayer, string colliderTag, Mesh convexMesh, PhysicMaterial convexMaterial, string convexLayer, string convexTag, Func< Transform, float > rangefinder, Callback onGenComplete)
 
abstract void SetupPartParameters ()
 

Public Attributes

float highestPoint
 
float volume
 

Protected Attributes

Mesh colliderMesh = null
 
Mesh convexColliderMesh = null
 
GameObject convexObject = null
 
int genTime = 0
 
float maxRange = 2500f
 
float minRange = 0f
 
Callback onGenComplete
 
Part partComponent
 
bool procedural = true
 
SpaceObjectCollider soc
 
GameObject visualObject = null
 
Renderer visualRenderer
 

Properties

Mesh ConvexColliderMesh [get]
 
Renderer VisualRenderer [get]
 

Member Function Documentation

void PSpaceObject.Awake ( )
inline
void PSpaceObject.SetMaterialColor ( string  name,
Color  value 
)
inline
void PSpaceObject.Setup ( Mesh  visualMesh,
Material  visualMaterial,
string  visualLayer,
string  visualTag,
Mesh  colliderMesh,
PhysicMaterial  colliderMaterial,
string  colliderLayer,
string  colliderTag,
Mesh  convexMesh,
PhysicMaterial  convexMaterial,
string  convexLayer,
string  convexTag,
Func< Transform, float >  rangefinder,
Callback  onGenComplete 
)
inline
abstract void PSpaceObject.SetupPartParameters ( )
pure virtual

Implemented in PAsteroid, and PComet.

Member Data Documentation

Mesh PSpaceObject.colliderMesh = null
protected
Mesh PSpaceObject.convexColliderMesh = null
protected
GameObject PSpaceObject.convexObject = null
protected
int PSpaceObject.genTime = 0
protected
float PSpaceObject.highestPoint
float PSpaceObject.maxRange = 2500f
protected
float PSpaceObject.minRange = 0f
protected
Callback PSpaceObject.onGenComplete
protected
Part PSpaceObject.partComponent
protected
bool PSpaceObject.procedural = true
protected
SpaceObjectCollider PSpaceObject.soc
protected
GameObject PSpaceObject.visualObject = null
protected
Renderer PSpaceObject.visualRenderer
protected
float PSpaceObject.volume

Property Documentation

Mesh PSpaceObject.ConvexColliderMesh
get
Renderer PSpaceObject.VisualRenderer
get

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