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

Public Member Functions

 Chunk (int i0, int i1, int i2, Vector3[] verts, Vector3 origin)
 
void ClearNeighbours ()
 
Chunk GetNeighbour (int i)
 
float GetSlope (Chunk t)
 Calculates the 'slope' to another chunk. Negative values mean the merged shape would be concave More...
 
Vector3 GetTri (int i)
 
int GetTriIndex (int i)
 
bool SetNeighbour (int eA, int eB, Chunk n)
 
void SetTri (Vector3 value, int i)
 

Public Attributes

int i0
 
Chunk n01
 
Vector3 p0
 
float radiusSqr
 neighbours More...
 
CompositeSolid solid
 
Vector3 srfCenter
 
MarchStep step
 

Constructor & Destructor Documentation

SpaceObjectCollider.Chunk.Chunk ( int  i0,
int  i1,
int  i2,
Vector3[]  verts,
Vector3  origin 
)
inline

Member Function Documentation

void SpaceObjectCollider.Chunk.ClearNeighbours ( )
inline
Chunk SpaceObjectCollider.Chunk.GetNeighbour ( int  i)
inline
float SpaceObjectCollider.Chunk.GetSlope ( Chunk  t)
inline

Calculates the 'slope' to another chunk. Negative values mean the merged shape would be concave

Parameters
t
Returns
Vector3 SpaceObjectCollider.Chunk.GetTri ( int  i)
inline
int SpaceObjectCollider.Chunk.GetTriIndex ( int  i)
inline
bool SpaceObjectCollider.Chunk.SetNeighbour ( int  eA,
int  eB,
Chunk  n 
)
inline
void SpaceObjectCollider.Chunk.SetTri ( Vector3  value,
int  i 
)
inline

Member Data Documentation

int SpaceObjectCollider.Chunk.i0
Chunk SpaceObjectCollider.Chunk.n01
Vector3 SpaceObjectCollider.Chunk.p0
float SpaceObjectCollider.Chunk.radiusSqr

neighbours

CompositeSolid SpaceObjectCollider.Chunk.solid
Vector3 SpaceObjectCollider.Chunk.srfCenter
MarchStep SpaceObjectCollider.Chunk.step

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