Stores information on an asteroid's shape More...
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... | |
Stores information on an asteroid's shape
ProceduralAsteroid.Generate(int, float, Transform) for a factory method creating PAsteroids
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.
float PAsteroid.highestPoint |
The largest distance of any vertex to the mesh center
float PAsteroid.volume |
The (approximate?) volume of the asteroid mesh