diff --git a/interface/src/avatar/Hand.cpp b/interface/src/avatar/Hand.cpp index 692ce74d7c..00ddc4d301 100755 --- a/interface/src/avatar/Hand.cpp +++ b/interface/src/avatar/Hand.cpp @@ -65,7 +65,7 @@ void Hand::simulateToyBall(PalmData& palm, const glm::vec3& fingerTipPosition, f glm::vec3 targetPosition = fingerTipPosition / (float)TREE_SCALE; float targetRadius = (TOY_BALL_RADIUS * 2.0f) / (float)TREE_SCALE; const Particle* closestParticle = Application::getInstance()->getParticles() - ->getTree()->findClosestPartice(targetPosition, targetRadius); + ->getTree()->findClosestParticle(targetPosition, targetRadius); if (closestParticle) { printf("potentially caught... particle ID:%d\n", closestParticle->getID()); diff --git a/libraries/particles/src/ParticleTree.cpp b/libraries/particles/src/ParticleTree.cpp index d0fa672887..152f1dec69 100644 --- a/libraries/particles/src/ParticleTree.cpp +++ b/libraries/particles/src/ParticleTree.cpp @@ -107,7 +107,7 @@ bool ParticleTree::findNearPointOperation(OctreeElement* element, void* extraDat return false; } -const Particle* ParticleTree::findClosestPartice(glm::vec3 position, float targetRadius) { +const Particle* ParticleTree::findClosestParticle(glm::vec3 position, float targetRadius) { // First, look for the existing particle in the tree.. FindNearPointArgs args = { position, targetRadius, false, NULL, FLT_MAX }; recurseTreeWithOperation(findNearPointOperation, &args); diff --git a/libraries/particles/src/ParticleTree.h b/libraries/particles/src/ParticleTree.h index a43dd45913..2491934252 100644 --- a/libraries/particles/src/ParticleTree.h +++ b/libraries/particles/src/ParticleTree.h @@ -43,7 +43,7 @@ public: virtual void update(); void storeParticle(const Particle& particle); - const Particle* findClosestPartice(glm::vec3 position, float targetRadius); + const Particle* findClosestParticle(glm::vec3 position, float targetRadius); void addNewlyCreatedHook(NewlyCreatedParticleHook* hook); void removeNewlyCreatedHook(NewlyCreatedParticleHook* hook);