memset(trace, 0, sizeof(*trace));
trace->fraction = trace->realfraction = 1;
- VectorCopy(end, trace->endpos);
Matrix4x4_Transform(inversematrix, start, starttransformed);
Matrix4x4_Transform(inversematrix, end, endtransformed);
memset(trace, 0, sizeof(*trace));
trace->fraction = trace->realfraction = 1;
- VectorCopy(end, trace->endpos);
Matrix4x4_Transform(inversematrix, start, starttransformed);
Matrix4x4_Transform(inversematrix, end, endtransformed);
memset(trace, 0, sizeof(*trace));
trace->fraction = trace->realfraction = 1;
- VectorCopy(start, trace->endpos);
Matrix4x4_Transform(inversematrix, start, starttransformed);
#if COLLISIONPARANOID >= 3
else
Collision_ClipTrace_Point(trace, bodymins, bodymaxs, starttransformed, hitsupercontentsmask, bodysupercontents, 0, NULL);
+ VectorCopy(start, trace->endpos);
// transform plane
// NOTE: this relies on plane.dist being directly after plane.normal
Matrix4x4_TransformPositivePlane(matrix, trace->plane.normal[0], trace->plane.normal[1], trace->plane.normal[2], trace->plane.dist, trace->plane.normal);
{
memset(trace, 0, sizeof(*trace));
trace->fraction = trace->realfraction = 1;
- VectorCopy(start, trace->endpos);
if (model && model->TracePoint)
model->TracePoint(model, 0, trace, start, hitsupercontents);
+ VectorCopy(start, trace->endpos);
}
void Collision_CombineTraces(trace_t *cliptrace, const trace_t *trace, void *touch, qboolean isbmodel)