| 1924 | v2 = &triangles->v.p[2]; |
| 1925 | v3 = &triangles->v.p[1]; |
| 1926 | } |
| 1927 | else |
| 1928 | { |
| 1929 | v2 = &triangles->v.p[1]; |
| 1930 | v3 = &triangles->v.p[2]; |
| 1931 | } |
| 1932 | if (xSweptSphereToTriangle(sws, (xVec3*)v1, (xVec3*)v2, (xVec3*)v3)) |
| 1933 | { |
| 1934 | sws->oid = triangles->matIndex; |
| 1935 | sws->optr = NULL; |
| 1936 | sws->mptr = NULL; |
| 1937 | sSweptSphereHitFound = 1; |
| 1938 | } |
| 1939 | } |
| 1940 | } while ((triangles++)->flags & 0x1); |
| 1941 | return 1; |
| 1942 | } |
| 1943 | |
| 1944 | S32 xSweptSphereToEnv(xSweptSphere* sws, xEnv* env) |
| 1945 | { |
| 1946 | if (!sws->dist) |
| 1947 | return 0; |
| 1948 | |
| 1949 | sSweptSphereHitFound = 0; |
| 1950 | |
| 1951 | if (env->geom->jsp) |
| 1952 | { |
| 1953 | RwLine line; |
| 1954 | line.start = *(RwV3d*)&sws->start; |
| 1955 | line.end = *(RwV3d*)&sws->end; |
| 1956 | |
| 1957 | RwV3d delta; |
| 1958 | RwV3dSubMacro(&delta, &line.end, &line.start); |
nothing calls this directly
no test coverage detected