Source code is correct on this but just throwing it out there that PhysWorld::SegmentCast implementation in the book is missing
"closestT = t;" in the example code after "if (t < closestT)" on page 327.
Didn't know if this was appropriate errata, but I'm sure you'd like to be aware of typos! Fantastic book by the way.
Source code is correct on this but just throwing it out there that PhysWorld::SegmentCast implementation in the book is missing "closestT = t;" in the example code after "if (t < closestT)" on page 327.
Didn't know if this was appropriate errata, but I'm sure you'd like to be aware of typos! Fantastic book by the way.