mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 22:07:03 +02:00
fixed typo
This commit is contained in:
parent
1a6f730659
commit
cd830efdd4
3 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue