MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xEntReposition

Function xEntReposition

src/SB/Core/x/xEnt.cpp:1944–1967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1942}
1943
1944void 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
1969void xEntInitShadow(xEnt& ent, xEntShadow& shadow)
1970{

Callers

nothing calls this directly

Calls 2

xBoundUpdateFunction · 0.85
zGridUpdateEntFunction · 0.50

Tested by

no test coverage detected