Quote:
Originally Posted by arkshine
Just for your information, you can get rid of most of your code using glb_trace_endpos which contain the end position of the last trace.
|
the question is whether
get_global()or my calculation is faster, i cannot test it cuz my cs crashed when im using the profiling-binarys and im not sure whether your 100% right since
get_global()runs a lot of c++ code.
PHP Code:
static Float:vecEnd[3];
vecEnd[0] = vecSrc[0] + vecDir[0] * range;
vecEnd[1] = vecSrc[1] + vecDir[1] * range;
vecEnd[2] = vecSrc[2] + vecDir[2] * range;
__________________