Gah - a solution with more questions. – EntropicLqd
Difference between revisions of "Legacy:KarmaParamsRBFull"
From Unreal Wiki, The Unreal Engine Documentation Site
Line 3: | Line 3: | ||
This is a more advanced, but otherwise functionally identical version of KarmaParams. It allows control over the center of mass and its inertial properties. It adds the following variables: | This is a more advanced, but otherwise functionally identical version of KarmaParams. It allows control over the center of mass and its inertial properties. It adds the following variables: | ||
− | ; KInertiaTensor : The mass distribution of the actor. | + | ; KInertiaTensor : The mass distribution of the actor. There are 6 values for this representing a matrix. Only the values across the main diagonal seem to do anything (making it a diagonal matrix). |
+ | |||
+ | That is, elements 0, 3, and 5: | ||
+ | |||
+ | // (0 1 2) | ||
+ | |||
+ | // (1 3 4) | ||
+ | |||
+ | // (2 4 5) | ||
+ | |||
+ | I'm pretty sure that setting them specifies how difficult it is to rotate the object. | ||
+ | |||
+ | KInertiaTensor(0)=1.8 // how difficult it is to roll the object | ||
+ | |||
+ | KInertiaTensor(1)=0 | ||
+ | |||
+ | KInertiaTensor(2)=0 | ||
+ | |||
+ | KInertiaTensor(3)=1.8 // how difficult it is to pitch the object | ||
+ | |||
+ | KInertiaTensor(4)=0 | ||
+ | |||
+ | KInertiaTensor(5)=1.8 // how difficult it is to yaw the object | ||
; KCOMOffset : The center of mass offset. This is a vector indicating the location of the center of mass of this actor, relative to it's geographical center. It defaults to 0,0,0. | ; KCOMOffset : The center of mass offset. This is a vector indicating the location of the center of mass of this actor, relative to it's geographical center. It defaults to 0,0,0. |
Revision as of 14:19, 29 July 2004
This is a more advanced, but otherwise functionally identical version of KarmaParams. It allows control over the center of mass and its inertial properties. It adds the following variables:
- KInertiaTensor
- The mass distribution of the actor. There are 6 values for this representing a matrix. Only the values across the main diagonal seem to do anything (making it a diagonal matrix).
That is, elements 0, 3, and 5:
// (0 1 2)
// (1 3 4)
// (2 4 5)
I'm pretty sure that setting them specifies how difficult it is to rotate the object.
KInertiaTensor(0)=1.8 // how difficult it is to roll the object
KInertiaTensor(1)=0
KInertiaTensor(2)=0
KInertiaTensor(3)=1.8 // how difficult it is to pitch the object
KInertiaTensor(4)=0
KInertiaTensor(5)=1.8 // how difficult it is to yaw the object
- KCOMOffset
- The center of mass offset. This is a vector indicating the location of the center of mass of this actor, relative to it's geographical center. It defaults to 0,0,0.