Objects need to be translated by their negation

Translating by the negation of the given vector puts them in the right place from the ray's perspective. Without the negation, things are mirrored.
This commit is contained in:
Eryn Wells 2014-08-20 10:06:22 -07:00
parent 301f5ff9aa
commit 0ab3e17467

View file

@ -54,7 +54,7 @@ Object::GetMaterial()
void
Object::Place(const Vector4 &p)
{
mTranslation = Matrix4::Translation(p);
mTranslation = Matrix4::Translation(-p);
}