Picking: Unterschied zwischen den Versionen

Aus Das Sopra Wiki
Florian (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Florian (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Zeile 29: Zeile 29:


//create the direction vector for the ray from the calculated positions
//create the direction vector for the ray from the calculated positions
Vector3 direction = nearPoint - farPoint;
Vector3 direction = farPoint - nearPoint;
direction.Normalize();
direction.Normalize();