Raised This Month: $ Target: $400
 0% 

Vectors when 2 objects touch?...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 06-20-2007 , 04:37   Re: Vectors when 2 objects touch?...
Reply With Quote #4

if the wall is in the middle of the wall ( e.g. null origin of the wall )
then you could try this:

if vector_lenght(player origin - wall origin) <= door_width/2 then
player is touching the door
end if
__________________
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
 



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 21:25.


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