.:: 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
how to determine look up or down on ladder
Old
  (#1)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default how to determine look up or down on ladder - 23-07-2004

I have some problems with determining whether bot should look up or look down when climbing the ladder, since I've found sometimes I look up and push forward it will actually move _down_. But in which case this will happen ?

Thanks
  
Reply With Quote
Re: how to determine look up or down on 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: how to determine look up or down on ladder - 23-07-2004

how so ?
if the destination waypoint is higher than the source waypoint, make the bot look up, if the contrary make it look down...
But note that you must FACE the ladder to move up when pressing forward. If you have the back at it, you will move DOWN when pressing forward. So make (temporarily) the x and y origin of the destination waypoint in the center of the ladder so that you're certain that the bot will face the ladder.



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: how to determine look up or down on ladder
Old
  (#3)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: how to determine look up or down on ladder - 24-07-2004

Quote:
Originally Posted by Pierre-Marie Baty
But note that you must FACE the ladder to move up when pressing forward. If you have the back at it, you will move DOWN when pressing forward.
that's what I mean. but it isn't always that if you have the back at it you'll move down. sometimes it also moves up.
and like this picture, when you want to climb up the ladder to the platform you have to not face the ladder...
Attached Thumbnails
Click image for larger version

Name:	de_cbble0000.jpg
Views:	432
Size:	34.7 KB
ID:	401  
  
Reply With Quote
Re: how to determine look up or down on ladder
Old
  (#4)
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: how to determine look up or down on ladder - 26-07-2004

not true

You can still climb that ladder by facing it all the time and strafe left to get out of it when you've reached the top... and this is usually what I do.

In fact the ladder code works like this:
-if you face the ladder AND your pitch is > to -45 degrees, FORWARD will go UP
-if you face the ladder AND your pitch is < to -45 degrees, FORWARD will go DOWN
-if the ladder is on your left, STRAFE LEFT will go UP (no matter your pitch)
-if the ladder is on your right, STRAFE RIGHT will go UP (no matter your pitch)
-if you have the ladder in the back AND your pitch is > to +45 degrees, FORWARD will go UP
-if you have the ladder in the back AND your pitch is < to +45 degrees, FORWARD will go DOWN
the opposite of the mentioned keys do the opposite movement. When talking about pitch, + means up and - means down (I'm not sure it's like that in the HL engine, actually I think it's the contrary).



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