| 424 | } |
| 425 | |
| 426 | bool StaticModel::IntersectsItself(const Ray& ray, Real& distance, Vector3& normal) |
| 427 | { |
| 428 | bool result = false; |
| 429 | if (Model != nullptr && Model->IsLoaded()) |
| 430 | { |
| 431 | Mesh* mesh; |
| 432 | Matrix world; |
| 433 | GetLocalToWorldMatrix(world); |
| 434 | result = Model->Intersects(ray, world, distance, normal, &mesh); |
| 435 | } |
| 436 | return result; |
| 437 | } |
| 438 | |
| 439 | void StaticModel::Serialize(SerializeStream& stream, const void* otherObj) |
| 440 | { |
nothing calls this directly
no test coverage detected