Darwinbots Forum

Code center => Bugs and fixes => Topic started by: EricL on April 21, 2008, 02:19:19 PM

Title: tie length included bot radii RESOLVED 2.43.1j
Post by: EricL on April 21, 2008, 02:19:19 PM
When setting the length of a hardened tie via .fixlen, the length is specified as the distance desired from bot edge to bot edge I.e. a bot specifies the distance between it's edge and the tied bot's edge it wants the tie to gravitate to as it's natural length and not a bot center to center distance.   But when reading the length of a tie, the two connected bot radii was incorrectly included in the returned tie length, returning a larger number for .tielen than expected.

Now tie lengths as specied and read are consistant.  Neither include the connected bot radii.  

Note that tie lengths will now go negative when tied bots intersect.

Fixed in 2.43.1j