calc vecStart and vecStop of a traceline with TR_flFraction and TR_vecEndPos
hi i got a problem, at least i got a result which must be wrong :D
i got Ham_TraceAttack (pre) and want to calculate the start and stop pos of the traceline/tracehull the engine did (not TR_vecEndPos) so i guess i have to do the following: start = stop - v_forward * x where x is depending on the attack (either 32.0 or 48.0), stop = vecEndPos * (2-fraction) i just got a few min to test that but what i got seemed to be wrong and thats why i want to ask you whether i missed sth like EngFunc_MakeVectors or whatever cuz im not sure. i may post additional information tomorrow cuz i gotta sleep now :X thx in advice //edit no time to test this but stop should be: stop = vecEndPos * (1/fraction) //edit2 forgot to mention that hösdk told me that the param Float:direction[3] of Ham_TraceAttack is v_forward which is used to calculate the stop vector (stop = start + forward * x) |
Re: calc vecStart and vecStop of a traceline with TR_flFraction and TR_vecEndPos
I don't know how to retrieve, but try to compare the tr results with this :
PHP Code:
|
| All times are GMT -4. The time now is 01:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.