Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Static Public Member Functions | List of all members
PartGeometryUtil Class Reference

Classes

class  PosRot
 

Static Public Member Functions

static Vector3 FindBoundsCentroid (Bounds[] bounds, Transform localTo)
 
static Bounds GetColliderBounds (this GameObject p)
 
static Bounds[] GetColliderBounds (this Part p)
 
static Bounds[] GetPartColliderBounds (Part p)
 
static Bounds GetPartRendererBound (this Part p)
 
static Bounds[] GetPartRendererBounds (Part p)
 
static Bounds GetRendererBounds (this GameObject p)
 
static Bounds[] GetRendererBounds (this Part p)
 
static Bounds GetRendererBoundsWithoutParticles (this GameObject p)
 Returns the renderer bounds of a GameObject and it's children, without counting the ones that have a ParticleSystemRenderer More...
 
static Bounds MergeBounds (Bounds[] bounds, Transform relativeTo)
 
static Bounds MergeBounds (Dictionary< Bounds[], PosRot > centeredBounds, PosRot relativeTo)
 Merge bounds which are arbitrarily centered at the corresponding vector More...
 

Member Function Documentation

static Vector3 PartGeometryUtil.FindBoundsCentroid ( Bounds[]  bounds,
Transform  localTo 
)
inlinestatic
static Bounds PartGeometryUtil.GetColliderBounds ( this GameObject  p)
inlinestatic
static Bounds [] PartGeometryUtil.GetColliderBounds ( this Part  p)
inlinestatic
static Bounds [] PartGeometryUtil.GetPartColliderBounds ( Part  p)
inlinestatic
static Bounds PartGeometryUtil.GetPartRendererBound ( this Part  p)
inlinestatic
static Bounds [] PartGeometryUtil.GetPartRendererBounds ( Part  p)
inlinestatic
static Bounds PartGeometryUtil.GetRendererBounds ( this GameObject  p)
inlinestatic
static Bounds [] PartGeometryUtil.GetRendererBounds ( this Part  p)
inlinestatic
static Bounds PartGeometryUtil.GetRendererBoundsWithoutParticles ( this GameObject  p)
inlinestatic

Returns the renderer bounds of a GameObject and it's children, without counting the ones that have a ParticleSystemRenderer

Parameters
pThe gameobject to obtain the bounds from
Returns
static Bounds PartGeometryUtil.MergeBounds ( Bounds[]  bounds,
Transform  relativeTo 
)
inlinestatic
static Bounds PartGeometryUtil.MergeBounds ( Dictionary< Bounds[], PosRot centeredBounds,
PosRot  relativeTo 
)
inlinestatic

Merge bounds which are arbitrarily centered at the corresponding vector

Parameters
centeredBounds
Returns

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