Picking: Unterschied zwischen den Versionen
Aus Das Sopra Wiki
Keine Bearbeitungszusammenfassung |
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 | Vector3 direction = farPoint - nearPoint; | ||
direction.Normalize(); | direction.Normalize(); | ||
