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
GAPUtil_DynamicCylinder Class Reference
Inheritance diagram for GAPUtil_DynamicCylinder:

Public Member Functions

void CreateMesh (Material cylinderMaterial)
 Creates the cylinder mesh inside this transform. More...
 
Vector3 GetPivotPosition ()
 Returns the position of the base point of the cylinder. More...
 
void UpdateValues (float radius, double botHeight, double topHeight, double distanceToCenter)
 Updates the cylinder size and radius. More...
 

Member Function Documentation

void GAPUtil_DynamicCylinder.CreateMesh ( Material  cylinderMaterial)
inline

Creates the cylinder mesh inside this transform.

Parameters
cylinderMaterialThe material that will be applied to the cylinder mesh.
Vector3 GAPUtil_DynamicCylinder.GetPivotPosition ( )
inline

Returns the position of the base point of the cylinder.

Returns
void GAPUtil_DynamicCylinder.UpdateValues ( float  radius,
double  botHeight,
double  topHeight,
double  distanceToCenter 
)
inline

Updates the cylinder size and radius.

Parameters
radiusThe new radius of the cylnder
botHeightThe percentage value of the bottom of the cylinder
topHeightThe percentage value of the top of the cylinder
distanceToCenterThe distance of the base point of the cylinder to the center, to calculate the projection.

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