[Home]History of GamePhysics

Robo Home | Changes | Preferences | AllPages


Revision 89 . . September 5, 2008 6:04 EST by Simonton [Expanding the info on robot collisions (and a little on bullet collisions)]
Revision 88 . . August 30, 2008 9:27 EST by Simonton [Link to GamePhysics/BotSpeed]
Revision 87 . . (edit) February 25, 2008 21:35 EST by Martin Alan Pedersen [typo correction]
  

Difference (from prior major revision) (author diff)

Changed: 95c95

Collisions



Robot Collisions




Changed: 97c97
With Another Robot Each robot takes .6 damage. If a robot is moving away from the collision, it will not be stopped.
In short: when two robots collide, each takes .6 damage. If either of them is moving toward the collision, it will be stopped and awarded ram damage for scoring. If they are both moving toward each other, they will both take 1.2 damage and both be awarded .6 for scoring.

Changed: 99c99,103
With a Wall AdvancedRobots? take Math.abs(velocity) * .5 - 1; (Never < 0)
In detail: a robot is moving "toward" the collision if its velocity is non-zero and less than 90 degrees away from the enemy. Each bot takes turns (in a random order each tick) deciding if it collided with another, by determining if its bounding box intersects that of another on the field (after they have all moved for that tick). When an intersection is found, and the bot is at fault, it gets moved back to its original position. Therefore, it is possible that even if the second bot moved toward the collision it will not detect it because the bounding boxes no longer intersect, and therefore not be awarded the ram damage for scoring.

Wall Collisions




AdvancedRobots? take Math.abs(velocity) * .5 - 1 damage (but never < 0)

Changed: 103c107,108
Robots are 36x36 squares centered on the (x,y) coordinate. Even when you have rotated, you collide with walls and robots and are hit by bullets based on 18 pixels in all four directions.

Robots are 36x36 squares centered on the (x,y) coordinate. Even when you have rotated, you collide with walls and robots and are hit by bullets based on 18 pixels in all four directions. Bullet collisions are based on whether the line between the bullet's last position and its new position intersect that square.


Robo Home | Changes | Preferences | AllPages
Search: