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.CompositeSolid Class Reference

Public Member Functions

void AddChunk (Chunk c)
 
void BuildCompositeMesh (Vector3[] srcVerts, Vector3[] srcNormals, Color c)
 
 CompositeSolid ()
 
bool ContainsChunk (Chunk c)
 
void CreateCollider (string name, Transform parent)
 
void DrawSolid (Color c, float duration)
 
Vector3 GetSrfCenter ()
 
Vector3 GetSrfRadial ()
 
void RemoveChunk (Chunk c)
 

Public Attributes

List< Chunkchunks
 
MeshCollider collider
 
Color color
 
Mesh mesh
 
Vector3[] normals
 
int[] tris
 
Vector3[] verts
 

Constructor & Destructor Documentation

SpaceObjectCollider.CompositeSolid.CompositeSolid ( )
inline

Member Function Documentation

void SpaceObjectCollider.CompositeSolid.AddChunk ( Chunk  c)
inline
void SpaceObjectCollider.CompositeSolid.BuildCompositeMesh ( Vector3[]  srcVerts,
Vector3[]  srcNormals,
Color  c 
)
inline

< we just need one face linking to this 'root' vert. The convex collider will build a solid hull around it afterwards.

bool SpaceObjectCollider.CompositeSolid.ContainsChunk ( Chunk  c)
inline
void SpaceObjectCollider.CompositeSolid.CreateCollider ( string  name,
Transform  parent 
)
inline
void SpaceObjectCollider.CompositeSolid.DrawSolid ( Color  c,
float  duration 
)
inline
Vector3 SpaceObjectCollider.CompositeSolid.GetSrfCenter ( )
inline
Vector3 SpaceObjectCollider.CompositeSolid.GetSrfRadial ( )
inline
void SpaceObjectCollider.CompositeSolid.RemoveChunk ( Chunk  c)
inline

Member Data Documentation

List<Chunk> SpaceObjectCollider.CompositeSolid.chunks
MeshCollider SpaceObjectCollider.CompositeSolid.collider
Color SpaceObjectCollider.CompositeSolid.color
Mesh SpaceObjectCollider.CompositeSolid.mesh
Vector3 [] SpaceObjectCollider.CompositeSolid.normals
int [] SpaceObjectCollider.CompositeSolid.tris
Vector3 [] SpaceObjectCollider.CompositeSolid.verts

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