Raised This Month: $ Target: $400
 0% 

TraceLine


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 09-22-2004 , 09:25  
Reply With Quote #3

as it says in eiface.h:
Code:
float	flFraction;			// time completed, 1.0 = didn't hit anything
You can for example get the distance between the start point end the found point using Length(endPoint - startPoint) * flFraction (although its easier to do it using Length(foundPoint - startPoint) but it was meant to show you what flFraction is).

AFAIK, you can get the flFraction member of the TraceResult structure using:
Code:
new Float:flFraction; traceresult(TR_Fraction, flFraction);
__________________
hello, i am pm
PM is offline
 



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 17:20.


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