mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 13:47:23 +02:00
fix warning
This commit is contained in:
parent
13985f8149
commit
a887baf081
1 changed files with 7 additions and 4 deletions
|
@ -923,10 +923,13 @@ void MyAvatar::updateCollisionWithAvatars(float deltaTime) {
|
|||
|
||||
// HACK: body-body collision uses two coaxial capsules with axes parallel to y-axis
|
||||
// TODO: make the collision work without assuming avatar orientation
|
||||
Extents myStaticExtents = _skeletonModel.getStaticExtents();
|
||||
glm::vec3 staticScale = myStaticExtents.maximum - myStaticExtents.minimum;
|
||||
float myCapsuleRadius = 0.25f * (staticScale.x + staticScale.z);
|
||||
float myCapsuleHeight = staticScale.y;
|
||||
|
||||
// TODO: these local variables are not used in the live code, only in the
|
||||
// commented-outTODO code below.
|
||||
//Extents myStaticExtents = _skeletonModel.getStaticExtents();
|
||||
//glm::vec3 staticScale = myStaticExtents.maximum - myStaticExtents.minimum;
|
||||
//float myCapsuleRadius = 0.25f * (staticScale.x + staticScale.z);
|
||||
//float myCapsuleHeight = staticScale.y;
|
||||
|
||||
CollisionInfo collisionInfo;
|
||||
foreach (const AvatarSharedPointer& avatarPointer, avatars) {
|
||||
|
|
Loading…
Reference in a new issue