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

Generates an asteroid shape More...

Inheritance diagram for ProceduralAsteroid:

Classes

class  ModValue
 
class  ModWrapper
 

Public Member Functions

PAsteroid Generate (int seed, float radius, Transform parent)
 Initializes a randomly generated asteroid shape More...
 

Public Attributes

float radius
 The desired reference surface of the asteroid mesh More...
 

Detailed Description

Generates an asteroid shape

Member Function Documentation

PAsteroid ProceduralAsteroid.Generate ( int  seed,
float  radius,
Transform  parent 
)

Initializes a randomly generated asteroid shape

Parameters
seedUsed to randomize the mesh
radiusThe desired reference surface of the asteroid mesh
parentThe reference frame in which the asteroid is to be oriented

Note: parent may not be null, even though UnityEngine.Transforms are usually allowed to have null parents.

Returns
An object containing all relevant meshes and key statistics

Member Data Documentation

float ProceduralAsteroid.radius

The desired reference surface of the asteroid mesh


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