| 1942 | } |
| 1943 | |
| 1944 | void xEntReposition(xEnt& ent, const xMat4x3& mat) |
| 1945 | { |
| 1946 | *(xMat4x3*)ent.model->Mat = mat; |
| 1947 | |
| 1948 | if (ent.collModel && ent.collModel != ent.model) |
| 1949 | { |
| 1950 | *(xMat4x3*)ent.collModel->Mat = mat; |
| 1951 | } |
| 1952 | |
| 1953 | if (ent.frame) |
| 1954 | { |
| 1955 | ent.frame->mat = mat; |
| 1956 | } |
| 1957 | |
| 1958 | if (ent.bound.mat) |
| 1959 | { |
| 1960 | *ent.bound.mat = mat; |
| 1961 | } |
| 1962 | |
| 1963 | ent.bound.sph.center = mat.pos; |
| 1964 | |
| 1965 | xBoundUpdate(&ent.bound); |
| 1966 | zGridUpdateEnt(&ent); |
| 1967 | } |
| 1968 | |
| 1969 | void xEntInitShadow(xEnt& ent, xEntShadow& shadow) |
| 1970 | { |
nothing calls this directly
no test coverage detected