MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / newstyle_StartInstanceAngles

Function newstyle_StartInstanceAngles

physics/newstyle_fi.cpp:276–287  ·  view source on GitHub ↗

instance at specified point with specified orientation if angles==NULL, don't modify matrix. This will be like doing an offset

Source from the content-addressed store, hash-verified

274// instance at specified point with specified orientation
275// if angles==NULL, don't modify matrix. This will be like doing an offset
276static void newstyle_StartInstanceAngles(vector *pos, angvec *angles) {
277 matrix tm;
278
279 if (angles == nullptr) {
280 newstyle_StartInstanceMatrix(pos, nullptr);
281 return;
282 }
283
284 vm_AnglesToMatrix(&tm, angles->p, angles->h, angles->b);
285
286 newstyle_StartInstanceMatrix(pos, &tm);
287}
288
289// pops the old context
290static void newstyle_DoneInstance() {

Callers 1

CollideSubmodelFunction · 0.85

Calls 2

vm_AnglesToMatrixFunction · 0.50

Tested by

no test coverage detected