Ball and Spring Toy
Ian Parberry's "Introduction to Game Physics"
Variables
Ragdoll.cpp File Reference

Code for the ragdoll class CRagdoll. More...

#include "Ragdoll.h"
#include "ObjectManager.h"
#include "Random.h"
#include "Renderer.h"
#include "GameDefines.h"

Variables

const float TORSO_LEN = 170.0f
 Length of torso.
 
const float SHOULDER_LEN = 90.0f
 Width of collar bone.
 
const float SHOULDER_DROP = 40.0f
 Height of collar bone.
 
const float HIP_LEN = 42.0f
 Width of pelvis.
 
const float HIP_DROP = 40.0f
 Height of pelvis.
 
const float LIMB_LEN = 100.0f
 Length of limb segments.
 
const float NECK_LEN = 78.0f
 Length of neck, obviously.
 
const float ELBOW_OFFSET = 15.0f
 Elbows stick out this much.
 
const float LEG_SPREAD = 5.0f
 Feet spread out this much.