KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Public Attributes | List of all members
PAsteroid Class Reference

Stores information on an asteroid's shape More...

Inheritance diagram for PAsteroid:

Public Member Functions

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)
 Combines premade elements into visual, collider, and convex meshes. More...
 

Public Attributes

float highestPoint
 The largest distance of any vertex to the mesh center More...
 
float volume
 The (approximate?) volume of the asteroid mesh More...
 

Detailed Description

Stores information on an asteroid's shape

ProceduralAsteroid.Generate(int, float, Transform) for a factory method creating PAsteroids

Member Function Documentation

void PAsteroid.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 
)

Combines premade elements into visual, collider, and convex meshes.

Member Data Documentation

float PAsteroid.highestPoint

The largest distance of any vertex to the mesh center

float PAsteroid.volume

The (approximate?) volume of the asteroid mesh


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