| 510 | } |
| 511 | |
| 512 | ax::Vec3 Terrain::getIntersectionPoint(const Ray& ray) const |
| 513 | { |
| 514 | Vec3 collisionPoint; |
| 515 | if (getIntersectionPoint(ray, collisionPoint)) |
| 516 | { |
| 517 | return collisionPoint; |
| 518 | } |
| 519 | else |
| 520 | { |
| 521 | return Vec3(0, 0, 0); |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | bool Terrain::getIntersectionPoint(const Ray& ray_, Vec3& intersectionPoint) const |
| 526 | { |