Ball and Spring Toy
Game Physics with Bespoke Code
Loading...
Searching...
No Matches
Ragdoll.cpp File Reference

Code for the ragdoll class CRagdoll.

#include "SageRandom.h"
#include "SageHelpers.h"
#include "Ragdoll.h"
#include "ObjectManager.h"
#include "SageSpriteRenderer.h"
#include "GameDefines.h"
#include "SageSound.h"
Include dependency graph for Ragdoll.cpp:

Variables

const float fTorso = 170.0f
 Length of torso.
 
const float fShldrW = 90.0f
 Width of collar bone.
 
const float fShldrHt = 40.0f
 Height of collar bone.
 
const float fHipW = 42.0f
 Width of pelvis.
 
const float fHipHt = 40.0f
 Height of pelvis.
 
const float fLimb = 100.0f
 Length of limb segments.
 
const float fNeck = 78.0f
 Length of neck, obviously.
 
const float fElbow = 15.0f
 Elbows stick out this much.
 
const float fFeet = 5.0f
 Feet spread out this much.