.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
easy way to find the normal vector of the ladder
Old
  (#1)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default easy way to find the normal vector of the ladder - 23-07-2004

Code:
g_engfuncs.pfnTraceModel(m_vecWptOrigin, VecBModelOrigin(pLadder), point_hull, pLadder, &tr);

if (tr.flFraction < 1.0)
   // tr.vecPlaneNormal is the normal vector of the ladder now
m_vecWptOrigin is the origin of the waypoint, which is always "outside" the ladder.

pfnTraceModel() means a tracehull which is only blocked by the specified entity ("pLadder").
  
Reply With Quote
Re: easy way to find the normal vector of the ladder
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: easy way to find the normal vector of the ladder - 23-07-2004

This is interesting indeed, although I never had problems determining the normal vector of a ladder using a normal TraceLine as far as I remember ???



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: easy way to find the normal vector of the ladder
Old
  (#3)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: easy way to find the normal vector of the ladder - 24-07-2004

if you are using a normal traceline, it's usually not the ladder but the wall behind the ladder that blocks the traceline. and sometimes you will have trouble with this in ladders which don't have a wall behind it (like that one in cs_assault).
  
Reply With Quote
Re: easy way to find the normal vector of the ladder
Old
  (#4)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: easy way to find the normal vector of the ladder - 24-07-2004

but if you have it like that it'll only hit the ladder and what if it hits the ladder from the wrong side?
  
Reply With Quote
Re: easy way to find the normal vector of the ladder
Old
  (#5)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: easy way to find the normal vector of the ladder - 24-07-2004

the start position is the waypoint origin, which is always at the right side unless the waypointer is bad one
  
Reply With Quote
Re: easy way to find the normal vector of the ladder
Old
  (#6)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: easy way to find the normal vector of the ladder - 24-07-2004

well if that were true then there isn't any problem using traceline even if it hit the thing in the back..
  
Reply With Quote
Re: easy way to find the normal vector of the ladder
Old
  (#7)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: easy way to find the normal vector of the ladder - 24-07-2004

wouldn't a tracehull find the ladder?
  
Reply With Quote
Re: easy way to find the normal vector of the ladder
Old
  (#8)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: easy way to find the normal vector of the ladder - 24-07-2004

Quote:
Originally Posted by Cheeseh
wouldn't a tracehull find the ladder?
Yes, I'm sure ordinary tracehull with "head_hull" will find the ladder. but the "point_hull" won't find it.
  
Reply With Quote
Re: easy way to find the normal vector of the ladder
Old
  (#9)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: easy way to find the normal vector of the ladder - 25-07-2004

umm yes, my bad.. TraceHull, that's what I meant in my post



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com