Game Development Community

Damage Location???

by Edward Smith · in General Discussion · 04/24/2002 (7:21 pm) · 1 replies

I was just looking though Player.cs and saw this and thought does this really work? and if so how?

// Damage location details
boxNormalHeadPercentage = 0.83;
boxNormalTorsoPercentage = 0.49;
boxHeadLeftPercentage = 0;
boxHeadRightPercentage = 1;
boxHeadBackPercentage = 0;
boxHeadFrontPercentage = 1;

Thx!


P.S. does anyone know where to find the code for the position of the first person camera?

#1
04/29/2002 (9:39 pm)
The position of the camera is determined by the cam node in the model. I suppose you could change it through code but that would probably not be a good idea unless you have some special plans for it. Just make a dummy object in front of the face and link it to the node you are using to move your head (ie Bip01 Head if your using the default Biped naming scheme).

Alc