If you want to help us maintaining this wiki, check out our discord server: https://discord.gg/3u69jMa 

KarmaParamsCollision

From SWRC Wiki
Revision as of 19:59, 11 April 2021 by Plasma (talk | contribs) (Created page with "<source lang="c++"> //============================================================================= // The Karma Collision parameters class. // This provides 'extra' parameter...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
//=============================================================================
// The Karma Collision parameters class.
// This provides 'extra' parameters needed to create Karma collision for this Actor.
// You can _only_ turn on collision, not dynamics.
// NB: All parameters are in KARMA scale!
//=============================================================================

class KarmaParamsCollision extends Object
	editinlinenew
	native;

// Used internally for Karma stuff - DO NOT CHANGE!
var const transient int				KarmaData;

var const float				KScale;  // Usually kept in sync with actor's DrawScale, this is how much to scale moi/com-offset (but not mass!)
var const vector			KScale3D;

var()    float   KFriction;          // Multiplied pairwise to get contact friction
var()    float   KRestitution;       // 'Bouncy-ness' - Normally between 0 and 1. Multiplied pairwise to get contact restitution.
var()    float   KImpactThreshold;   // threshold velocity magnitude to call KImpact event

var	  const bool bContactingLevel;	 // This actor currently has contacts with some level geometry (bsp, static mesh etc.). OUTPUT VRIABLE.

// default is sphere with mass 1 and radius 1

defaultproperties
{
     KScale=1
     KScale3D=(X=1,Y=1,Z=1)
     KImpactThreshold=1e+006
}