mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:19:05 +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;
|
glm::vec3 targetPosition = fingerTipPosition / (float)TREE_SCALE;
|
||||||
float targetRadius = (TOY_BALL_RADIUS * 2.0f) / (float)TREE_SCALE;
|
float targetRadius = (TOY_BALL_RADIUS * 2.0f) / (float)TREE_SCALE;
|
||||||
const Particle* closestParticle = Application::getInstance()->getParticles()
|
const Particle* closestParticle = Application::getInstance()->getParticles()
|
||||||
->getTree()->findClosestPartice(targetPosition, targetRadius);
|
->getTree()->findClosestParticle(targetPosition, targetRadius);
|
||||||
|
|
||||||
if (closestParticle) {
|
if (closestParticle) {
|
||||||
printf("potentially caught... particle ID:%d\n", closestParticle->getID());
|
printf("potentially caught... particle ID:%d\n", closestParticle->getID());
|
||||||
|
|
|
@ -107,7 +107,7 @@ bool ParticleTree::findNearPointOperation(OctreeElement* element, void* extraDat
|
||||||
return false;
|
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..
|
// First, look for the existing particle in the tree..
|
||||||
FindNearPointArgs args = { position, targetRadius, false, NULL, FLT_MAX };
|
FindNearPointArgs args = { position, targetRadius, false, NULL, FLT_MAX };
|
||||||
recurseTreeWithOperation(findNearPointOperation, &args);
|
recurseTreeWithOperation(findNearPointOperation, &args);
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
virtual void update();
|
virtual void update();
|
||||||
|
|
||||||
void storeParticle(const Particle& particle);
|
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 addNewlyCreatedHook(NewlyCreatedParticleHook* hook);
|
||||||
void removeNewlyCreatedHook(NewlyCreatedParticleHook* hook);
|
void removeNewlyCreatedHook(NewlyCreatedParticleHook* hook);
|
||||||
|
|
Loading…
Reference in a new issue