mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
avatar look at indicator smaller grey ball
This commit is contained in:
parent
da0b36ed5c
commit
53baf5652e
2 changed files with 4 additions and 3 deletions
|
@ -37,7 +37,7 @@ var radiusMinimum = 0.05;
|
|||
var radiusMaximum = 0.5;
|
||||
|
||||
var modelURLs = [
|
||||
"http://s3.amazonaws.com/converter.tipodean.com/hifi/gun/Raygun2.fbx",
|
||||
"https://s3-us-west-1.amazonaws.com/highfidelity-public/models/music/EVHFrankenstein.fbx",
|
||||
"http://highfidelity-public.s3-us-west-1.amazonaws.com/meshes/Feisar_Ship.FBX",
|
||||
"http://highfidelity-public.s3-us-west-1.amazonaws.com/meshes/birarda/birarda_head.fbx",
|
||||
"http://highfidelity-public.s3-us-west-1.amazonaws.com/meshes/pug.fbx",
|
||||
|
|
|
@ -234,10 +234,11 @@ void Avatar::render(const glm::vec3& cameraPosition, RenderMode renderMode) {
|
|||
}
|
||||
// If this is the avatar being looked at, render a little ball above their head
|
||||
if (_isLookAtTarget) {
|
||||
const float LOOK_AT_INDICATOR_RADIUS = 0.25f;
|
||||
const float LOOK_AT_INDICATOR_RADIUS = 0.05f;
|
||||
const float LOOK_AT_INDICATOR_HEIGHT = 0.65f;
|
||||
const float LOOK_AT_INDICATOR_COLOR[] = { 0.2f, 0.2f, 0.2f, 0.3f };
|
||||
glPushMatrix();
|
||||
glColor4f(0.0f, 1.0f, 1.0f, 0.5f);
|
||||
glColor4fv(LOOK_AT_INDICATOR_COLOR);
|
||||
glTranslatef(_position.x, _position.y + (getSkeletonHeight() * LOOK_AT_INDICATOR_HEIGHT), _position.z);
|
||||
glutSolidSphere(LOOK_AT_INDICATOR_RADIUS, 15, 15);
|
||||
glPopMatrix();
|
||||
|
|
Loading…
Reference in a new issue