From aab93d8a267824928f34dba969ea3a750130d192 Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Mon, 11 Apr 2016 10:46:22 -0700 Subject: [PATCH] fixes per code review --- examples/golfclub/golfClub.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/golfclub/golfClub.js b/examples/golfclub/golfClub.js index f034398d90..eecca891a4 100644 --- a/examples/golfclub/golfClub.js +++ b/examples/golfclub/golfClub.js @@ -1,7 +1,7 @@ // // golfClub.js // -// Created by Philip Rosedale on 11/11/15. +// Created by Philip Rosedale on April 11, 2016. // Copyright 2015 High Fidelity, Inc. // // @@ -46,7 +46,7 @@ function triggerPulled(hand) { function ballPosition(ball) { // return the position of this entity - var properties = Entities.getEntityProperties(ball); + var properties = Entities.getEntityProperties(ball, ['position']); if (!properties) { return null; } else { @@ -82,7 +82,7 @@ function avatarHalfHeight() { function brakeBall(ball) { // Check the ball's velocity and slow it down if beyond a threshold - var properties = Entities.getEntityProperties(ball); + var properties = Entities.getEntityProperties(ball, ['velocity']); if (properties) { var velocity = Vec3.length(properties.velocity); if ((velocity > 0) && (velocity < MAX_BRAKING_SPEED)) {