diff --git a/interface/src/Head.cpp b/interface/src/Head.cpp index 882728f0a3..6f293f2fef 100644 --- a/interface/src/Head.cpp +++ b/interface/src/Head.cpp @@ -119,7 +119,13 @@ Head::Head(bool isMine) { _renderPitch = 0.0; _sphere = NULL; - + + _collisionElipsoid.colliding = false; + _collisionElipsoid.position = glm::vec3( 0.0, 0.0, 0.0 ); + _collisionElipsoid.upVector = glm::vec3( 0.0, 0.0, 0.0 ); + _collisionElipsoid.girth = 0.0; + _collisionElipsoid.height = 0.0; + if (iris_texture.size() == 0) { switchToResourcesParentIfRequired(); unsigned error = lodepng::decode(iris_texture, iris_texture_width, iris_texture_height, iris_texture_file); @@ -128,16 +134,12 @@ Head::Head(bool isMine) { } } - //-------------------------------------------------- - // test... just slam them into random positions... - //-------------------------------------------------- - _otherAvatarHandPosition[ 0 ] = glm::vec3( 0.0f, 0.3f, 2.0f ); - _otherAvatarHandPosition[ 1 ] = glm::vec3( 4.0f, 0.3f, 2.0f ); - _otherAvatarHandPosition[ 2 ] = glm::vec3( 2.0f, 0.3f, 2.0f ); - _otherAvatarHandPosition[ 3 ] = glm::vec3( 1.0f, 0.3f, -4.0f ); - _otherAvatarHandPosition[ 4 ] = glm::vec3( -2.0f, 0.3f, -2.0f ); + for (int o=0; ogetLinkedData(); avatar->simulate(deltaTime); + + //not ready yet... + //myAvatar.testForCollision( avatar->getBodyPosition(), avatar->getGirth(), avatar->getHeight(), avatar->getBodyUpDirection() ); } }