Maps Ragdoll instance to Character Bones
More...
|
bool | IsKeyFramed [get] |
| Indicates whether ragdoll associated with this mapper was set to keyframed or not More...
|
|
bool | IsPartiallySimulated [get] |
| True if at least some of the bones are simulated and ragdoll was added to world. Partly = some bodies set to dynamic, some keyframed More...
|
|
Dictionary< int, List< int > > | RigidBodiesToBonesIndices [get] |
| Dictionary of rigid bodies indices to the list of bones that should be bound to these bodies More...
|
|
bool | IsActive [get] |
| True if the mapper was set to be active and can be used More...
|
|
HkRagdoll | Ragdoll [get] |
|
Maps Ragdoll instance to Character Bones
Definition at line 21 of file MyRagdollMapper.cs.
Constructs the new mapper
- Parameters
-
ragdoll | The ragdoll model |
bones | List of the mapped bones |
Definition at line 172 of file MyRagdollMapper.cs.
void Sandbox.Engine.Physics.MyRagdollMapper.Activate |
( |
| ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.ActivatePartialSimulation |
( |
List< int > |
dynamicRigidBodies = null | ) |
|
|
inline |
int Sandbox.Engine.Physics.MyRagdollMapper.BodyIndex |
( |
string |
bodyName | ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.Deactivate |
( |
| ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.DeactivatePartialSimulation |
( |
| ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.DebugDraw |
( |
MatrixD |
worldMatrix | ) |
|
|
inline |
static void Sandbox.Engine.Physics.MyRagdollMapper.DrawShape |
( |
HkShape |
shape, |
|
|
MatrixD |
worldMatrix, |
|
|
Color |
color, |
|
|
float |
alpha, |
|
|
bool |
shaded = true |
|
) |
| |
|
inlinestatic |
List<int> Sandbox.Engine.Physics.MyRagdollMapper.GetBodiesBindedToBones |
( |
List< String > |
bones | ) |
|
|
inline |
HkRigidBody Sandbox.Engine.Physics.MyRagdollMapper.GetBodyBindedToBone |
( |
MyCharacterBone |
myCharacterBone | ) |
|
|
inline |
Initializes the mapper
- Parameters
-
ragdollBonesMappings | Dictionary containing rigid body names and the corresponding character bones names list |
- Returns
Definition at line 208 of file MyRagdollMapper.cs.
void Sandbox.Engine.Physics.MyRagdollMapper.ResetRagdollVelocities |
( |
| ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.SetAngularVelocity |
( |
Vector3 |
angularVelocity, |
|
|
bool |
onKeyframedOnly = true |
|
) |
| |
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.SetLimitedVelocities |
( |
| ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.SetLinearVelocity |
( |
Vector3 |
linearVelocity, |
|
|
bool |
onKeyframedOnly = true |
|
) |
| |
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.SetRagdollToDynamic |
( |
| ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.SetRagdollToKeyframed |
( |
| ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.SetVelocities |
( |
| ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.SyncRigidBodiesTransforms |
( |
MatrixD |
worldTransform | ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.UpdateCharacterPose |
( |
float |
dynamicBodiesWeight = 1.0f , |
|
|
float |
keyframedBodiesWeight = 1.0f |
|
) |
| |
|
inline |
Sets the character's bones to the ragdoll's pose
- Parameters
-
weight | transform influence weight on dynamic bodies |
Definition at line 446 of file MyRagdollMapper.cs.
void Sandbox.Engine.Physics.MyRagdollMapper.UpdateRagdollAfterSimulation |
( |
| ) |
|
|
inline |
void Sandbox.Engine.Physics.MyRagdollMapper.UpdateRagdollPose |
( |
| ) |
|
|
inline |
Sets the pose of the ragdoll to match the pose of the bones
Definition at line 347 of file MyRagdollMapper.cs.
void Sandbox.Engine.Physics.MyRagdollMapper.UpdateRagdollPosition |
( |
| ) |
|
|
inline |
Matrix [] Sandbox.Engine.Physics.MyRagdollMapper.BodiesRigTransfoms |
Matrix [] Sandbox.Engine.Physics.MyRagdollMapper.BodiesRigTransfomsInverted |
Matrix [] Sandbox.Engine.Physics.MyRagdollMapper.BonesRigTransforms |
Matrix [] Sandbox.Engine.Physics.MyRagdollMapper.BonesRigTransformsInverted |
bool Sandbox.Engine.Physics.MyRagdollMapper.PositionChanged |
const float Sandbox.Engine.Physics.MyRagdollMapper.RAGDOLL_DEACTIVATION_TIME = 10f |
bool Sandbox.Engine.Physics.MyRagdollMapper.IsActive |
|
get |
True if the mapper was set to be active and can be used
Definition at line 153 of file MyRagdollMapper.cs.
bool Sandbox.Engine.Physics.MyRagdollMapper.IsKeyFramed |
|
get |
Indicates whether ragdoll associated with this mapper was set to keyframed or not
Definition at line 100 of file MyRagdollMapper.cs.
bool Sandbox.Engine.Physics.MyRagdollMapper.IsPartiallySimulated |
|
get |
True if at least some of the bones are simulated and ragdoll was added to world. Partly = some bodies set to dynamic, some keyframed
Definition at line 142 of file MyRagdollMapper.cs.
HkRagdoll Sandbox.Engine.Physics.MyRagdollMapper.Ragdoll |
|
get |
Dictionary<int, List<int> > Sandbox.Engine.Physics.MyRagdollMapper.RigidBodiesToBonesIndices |
|
get |
Dictionary of rigid bodies indices to the list of bones that should be bound to these bodies
Definition at line 147 of file MyRagdollMapper.cs.
The documentation for this class was generated from the following file: