Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | List of all members
ProceduralComet Class Reference
Inheritance diagram for ProceduralComet:
ProceduralSpaceObject

Public Member Functions

PComet Generate (int seed, float radius, Transform parent, System.Func< Transform, float > rangefinder, Callback onComplete, bool optimizeCollider, bool isSecondary=false)
 Generate a Comet. More...
 

Additional Inherited Members

- Public Attributes inherited from ProceduralSpaceObject
float radius
 
- Protected Member Functions inherited from ProceduralSpaceObject
Mesh CreateMeshCollider (SphereBaseSO sphere, float radius, List< PQSMod > modArray)
 
Mesh CreateMeshVisual (SphereBaseSO sphere, float radius, List< PQSMod > modArray, out float volume, out float highestPoint)
 
float RangefinderGeneric (Transform trf)
 
- Protected Attributes inherited from ProceduralSpaceObject
string colliderLayer = null
 
PhysicMaterial colliderMaterial = null
 
SphereBaseSO colliderSphere = null
 
string colliderTag = null
 
string convexLayer = null
 
PhysicMaterial convexMaterial = null
 
SphereBaseSO convexSphere = null
 
string convexTag = null
 
bool debugGenTime = false
 
List< ModWrappermods = null
 
Material primaryMaterial = null
 
Material secondaryMaterial = null
 
int seed
 
string visualLayer = null
 
SphereBaseSO visualSphere = null
 
string visualTag = null
 

Member Function Documentation

PComet ProceduralComet.Generate ( int  seed,
float  radius,
Transform  parent,
System.Func< Transform, float >  rangefinder,
Callback  onComplete,
bool  optimizeCollider,
bool  isSecondary = false 
)
inline

Generate a Comet.

Parameters
seedSeed for procedural terrain
radiusRadius of core
parentParent transform
rangefinder
onCompleteCallback when generate is completed.
optimizeColliderWhether to generate an optimized collider (low poly, but not matching the terrain) or false will generate matching collider
isSecondary
Returns

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