RayCastOne type coercion error

Hi,

I'm getting an error when I try and use RayCastOne in Box2d 2.1a:

TypeError: Error #1034: Type Coercion failed: cannot convert Box2D.Collision::b2Proxy@1c2e9671 to Box2D.Collision.b2RayCastInput.

I'm not sure what could be causing it!



Any help's much appreciated, thanks.
We discovered that this only happens when the world's broadphase is set specifically, to a b2BroadPhase. If we don't set a broad phase, and the default is used, then there's no error like this.

Original thread: https://box2d.org/forum/viewtopic.php?t=9617