Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.KarmaParams


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
//=============================================================================
// The Karma physics parameters class.
// This provides 'extra' parameters needed by Karma physics to the Actor class.
// (see Actor.uc)
// NB: All parameters are in KARMA scale!
//=============================================================================

class KarmaParams extends Object
	editinlinenew
	native;

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

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()    float   KMass;              // Mass used for Karma physics
var()    float   KLinearDamping;
var()    float   KAngularDamping;
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()    bool    KStartEnabled;      // Start simulating body as soon as PHYS_Karma starts

// NB - these do not apply to skeletons
var()	 bool	 KStayUpright;		// Stop this object from being able to rotate (using Angular3 constraint)
var()	 bool	 KAllowRotate;		// Allow this object to rotate about a vertical axis. Ignored unless KStayUpright == true.

// default is sphere with mass 1 and radius 1

defaultproperties
{
	KScale=1.000000
	KMass=1.000000
	KLinearDamping=0.200000
	KAngularDamping=0.200000
	KImpactThreshold=100000.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: sk 3-1-2016 10:38:40.000 - Creation time: sk 3-1-2016 10:48:39.686 - Created with UnCodeX