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

Public Attributes

int framesToSkip = 0
 Set to > 0 if you want the collision enhancer to skip this many FixedUpdates from when it Starts before it starts checking for collision punch through. More...
 
float instanceMinDistSqr = 0f
 Set this > 0 to override minDistSqr just for this instance of the CollisionEnhancer. More...
 
CollisionEnhancerBehaviour OnTerrainPunchThrough = CollisionEnhancerBehaviour.EXPLODE
 What to do if we get a punch through. More...
 
Part part
 This is the Part reference. - if there is one. More...
 
float translateBackVelocityFactor = 0.2f
 What velocity factor to apply when we translate the object back. More...
 
bool wasPacked = true
 Always start as packed. The code handles the rest. More...
 

Static Public Attributes

static bool bypass
 If true byapsses all collision enhancer checking on ALL objects More...
 
static float minDistSqr = 0.1f * 0.1f
 This is the square distance that an object must travel in a frame for the collision enhancer to do it's check. This is a global static. But can be individually overridden in a single instance by setting instanceMinDistSqr. More...
 
static double UnderTerrainTolerance = 0.5d
 
static float upFactor = 0.25f
 The distance to translate up if apporpriate - is static so this setting is applicable to all objects. More...
 

Member Data Documentation

bool CollisionEnhancer.bypass
static

If true byapsses all collision enhancer checking on ALL objects

int CollisionEnhancer.framesToSkip = 0

Set to > 0 if you want the collision enhancer to skip this many FixedUpdates from when it Starts before it starts checking for collision punch through.

float CollisionEnhancer.instanceMinDistSqr = 0f

Set this > 0 to override minDistSqr just for this instance of the CollisionEnhancer.

float CollisionEnhancer.minDistSqr = 0.1f * 0.1f
static

This is the square distance that an object must travel in a frame for the collision enhancer to do it's check. This is a global static. But can be individually overridden in a single instance by setting instanceMinDistSqr.

CollisionEnhancerBehaviour CollisionEnhancer.OnTerrainPunchThrough = CollisionEnhancerBehaviour.EXPLODE

What to do if we get a punch through.

Part CollisionEnhancer.part

This is the Part reference. - if there is one.

float CollisionEnhancer.translateBackVelocityFactor = 0.2f

What velocity factor to apply when we translate the object back.

double CollisionEnhancer.UnderTerrainTolerance = 0.5d
static
float CollisionEnhancer.upFactor = 0.25f
static

The distance to translate up if apporpriate - is static so this setting is applicable to all objects.

bool CollisionEnhancer.wasPacked = true

Always start as packed. The code handles the rest.


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