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

Engine.KarmaParamsRBFull


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
//=============================================================================
// This is the full set of Karma parameters, including inertia tensor and 
// centre-of-mass position, which are normally stored with the StaticMesh.
// This gives you a chance to overrids these values.
// NB: All parameters are in KARMA scale!
//=============================================================================

class KarmaParamsRBFull extends KarmaParams
    editinlinenew
    native;

// Inertia tensor of object assuming a mass of 1 - symmetric so just store 6 elements:
// (0 1 2)
// (1 3 4)
// (2 4 5)
// This will be scaled by the mass of the object to work out its actual inertia tensor.
var()    float   KInertiaTensor[6];
var()    vector  KCOMOffset;         // Position of centre of mass in body ref. frame

// default is sphere with radius 1

defaultproperties
{
     KInertiaTensor(0)=0.400000
     KInertiaTensor(3)=0.400000
     KInertiaTensor(5)=0.400000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mon 23/10/2006 20:25:18.000 - Creation time: Wed 7/2/2007 19:16:42.781 - Created with UnCodeX