Added (really horrible) dragging
This commit is contained in:
@@ -52,14 +52,14 @@ Vector3 Mouse::getPosition()
|
||||
if(G3D::isFinite(testRay.intersectionTime(p->getBox())))
|
||||
{
|
||||
|
||||
if (nearest>testRay.intersectionTime(p->getBox()))
|
||||
/*if (nearest>testRay.intersectionTime(p->getBox()))
|
||||
{
|
||||
|
||||
// BROKEN
|
||||
pos = (testRay.closestPoint(p->getPosition()/2));
|
||||
}
|
||||
}*/
|
||||
|
||||
/* // This would be an overall better solution
|
||||
// This would be an overall better solution
|
||||
for(char i = 0; i < 6; i++)
|
||||
{
|
||||
Vector3 side1;
|
||||
@@ -74,7 +74,7 @@ Vector3 Mouse::getPosition()
|
||||
nearest = newdistance;
|
||||
pos = inter;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
return pos;
|
||||
|
||||
Reference in New Issue
Block a user