Difference between revisions of "Thread:User talk:Wolfman/Bot Size"

From Robowiki
Jump to navigation Jump to search
m (New thread: Bot Size)
 
m
 
Line 8: Line 8:
  
 
Also is the hit box of the robot axis aligned or object aligned?  
 
Also is the hit box of the robot axis aligned or object aligned?  
I.e as the bot rotates does the bounding box rotate meaning the maximum width of the robot is in fact sqrt((36*36)+(36*36)) = ~59.1?
+
I.e as the bot rotates does the bounding box rotate meaning the maximum width of the robot is in fact sqrt((36*36)+(36*36)) = ~50.91?
  
 
Or ... is the collision detection of bullets etc a simple radius check?
 
Or ... is the collision detection of bullets etc a simple radius check?

Latest revision as of 15:09, 26 November 2013

Hiya,

Getting back into this (again!) Had a few questions on bot size.

Couldn't find the info anywhere through the search so apologies if this has been answered else where but what is the bot size?

Obviously the getWidth and getHeight functions return 36, but is this the full width from one edge to the other, or is this from the centre to the edge?

Also is the hit box of the robot axis aligned or object aligned? I.e as the bot rotates does the bounding box rotate meaning the maximum width of the robot is in fact sqrt((36*36)+(36*36)) = ~50.91?

Or ... is the collision detection of bullets etc a simple radius check?

Lastly some of the examples on pages hardcode the width of the bot to 16 pixels - obviously incorrect - see the http://robowiki.net/wiki/Linear_Targeting page, the section Exact Non-Iterative Solution defines the robot width as 16 ... and then proceeds to divide the width by two which seems doubly incorrect?

Cheers!