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

Function SetModelAnglesAndPos

model/polymodel.cpp:2725–2735  ·  view source on GitHub ↗

Sets the position and rotation of a polymodel. Used for rendering and collision detection

Source from the content-addressed store, hash-verified

2723
2724// Sets the position and rotation of a polymodel. Used for rendering and collision detection
2725void SetModelAnglesAndPos(poly_model *po, float *normalized_time, uint32_t subobj_flags) {
2726 ASSERT(!(po->flags & PMF_NOT_RESIDENT));
2727
2728 if (po->flags & PMF_TIMED) {
2729 SetModelAnglesAndPosTimed(po, normalized_time, subobj_flags);
2730 return;
2731 } else {
2732 SetModelAngles(po, normalized_time);
2733 SetModelInterpPos(po, normalized_time);
2734 }
2735}
2736
2737static vector Instance_fog_plane_stack[MAX_SUBOBJECTS];
2738static vector Instance_fog_portal_vert_stack[MAX_SUBOBJECTS];

Callers 12

DrawPolygonModelFunction · 0.85
GetPolyModelPointInWorldFunction · 0.85
ComputeDefaultSizeFuncFunction · 0.85
DoPhysLinkedFrameFunction · 0.85
PhysCalcGroundFunction · 0.85
CollidePolygonModelFunction · 0.85
GetPointInObjectSpaceFunction · 0.85
ApplyLightingToObjectsFunction · 0.85
GetObjectPointInWorldFunction · 0.85
WeaponCalcGunFunction · 0.85
AttachPointPosFunction · 0.85

Calls 3

SetModelAnglesFunction · 0.85
SetModelInterpPosFunction · 0.85

Tested by

no test coverage detected