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:
parent
301f5ff9aa
commit
0ab3e17467
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ Object::GetMaterial()
|
|||
void
|
||||
Object::Place(const Vector4 &p)
|
||||
{
|
||||
mTranslation = Matrix4::Translation(p);
|
||||
mTranslation = Matrix4::Translation(-p);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue