Added surface selector, made faces reflect G3D faces

This commit is contained in:
Vulpovile
2021-03-15 10:12:45 -07:00
parent 0e3968acd4
commit bfcb3f83ab
10 changed files with 102 additions and 19 deletions

View File

@@ -34,6 +34,16 @@ PartInstance * Mouse::getTarget()
return selectedInstance;
}
G3D::Ray * Mouse::getRay()
{
return &g_usableApp->cameraController.getCamera()->worldRay(x, y, g_usableApp->getRenderDevice()->getViewport());
}
G3D::Ray Mouse::getLastRay()
{
return testRay;
}
double getVectorDistance(Vector3 vector1, Vector3 vector2)
{