Raised This Month: $ Target: $400
 0% 

calc vecStart and vecStop of a traceline with TR_flFraction and TR_vecEndPos


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 05-10-2009 , 16:43   calc vecStart and vecStop of a traceline with TR_flFraction and TR_vecEndPos
Reply With Quote #1

hi i got a problem, at least i got a result which must be wrong
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)
__________________

Last edited by SchlumPF*; 05-11-2009 at 00:26.
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode