mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:36:47 +02:00
removed incomplete code snippet in Avatar.h
This commit is contained in:
parent
e9592f9360
commit
59ef9e5d7e
2 changed files with 6 additions and 15 deletions
|
@ -592,6 +592,7 @@ void Avatar::updateAvatarCollisionDetectionAndResponse(glm::vec3 collisionPositi
|
||||||
}
|
}
|
||||||
|
|
||||||
void Avatar::render(bool lookingInMirror) {
|
void Avatar::render(bool lookingInMirror) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// show avatar position
|
// show avatar position
|
||||||
glColor4f( 0.5f, 0.5f, 0.5f, 0.6 );
|
glColor4f( 0.5f, 0.5f, 0.5f, 0.6 );
|
||||||
|
@ -958,11 +959,11 @@ void Avatar::initializeSkeleton() {
|
||||||
calculateBoneLengths();
|
calculateBoneLengths();
|
||||||
|
|
||||||
_pelvisStandingHeight =
|
_pelvisStandingHeight =
|
||||||
_bone[ AVATAR_BONE_PELVIS_SPINE ].length +
|
_bone[ AVATAR_BONE_PELVIS_SPINE ].length +
|
||||||
_bone[ AVATAR_BONE_LEFT_THIGH ].length +
|
_bone[ AVATAR_BONE_LEFT_THIGH ].length +
|
||||||
_bone[ AVATAR_BONE_LEFT_SHIN ].length +
|
_bone[ AVATAR_BONE_LEFT_SHIN ].length +
|
||||||
_bone[ AVATAR_BONE_LEFT_FOOT ].length +
|
_bone[ AVATAR_BONE_LEFT_FOOT ].length +
|
||||||
_bone[ AVATAR_BONE_RIGHT_FOOT ].radius;
|
_bone[ AVATAR_BONE_RIGHT_FOOT ].radius;
|
||||||
|
|
||||||
// generate world positions
|
// generate world positions
|
||||||
updateSkeleton();
|
updateSkeleton();
|
||||||
|
|
|
@ -89,16 +89,6 @@ enum AvatarBoneID
|
||||||
NUM_AVATAR_BONES
|
NUM_AVATAR_BONES
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
static glm::vec3 avatarDefaultPose[NUM_AVATAR_BONES] =
|
|
||||||
{
|
|
||||||
glm::vec3( 0.0f, 0.0f, 0.0f ),
|
|
||||||
glm::vec3( 0.0f, 0.0f, 0.0f )
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
struct AvatarCollisionElipsoid
|
struct AvatarCollisionElipsoid
|
||||||
{
|
{
|
||||||
bool colliding;
|
bool colliding;
|
||||||
|
|
Loading…
Reference in a new issue