danzel wrote:One thing I've noted in b2Shape->TestPoint (TestSegment has the same error) is that the b2XForm parameter is referred to as "transform" in the docs, but is "xf" in the actual definition. (b2Shape line 130, 132 and 135, 143)
It is probably worth adding a note that you will usually call the body of the shape to get its b2XForm for use when calling this function.
I was creating a new blank b2XForm which would work sometimes but usually fail.
Got it, thanks!
For the second issue, I could grab the transform from the body, but the collision code doesn't include the dynamics code. If you use a different transform then you are solving a different problem.