Hi,
I think i found a bug which occurs when calling b2World::RayCastOne() using b2BroadPhase instead of b2DynamicTreeBroadPhase:
the arguments are interchanged:
b2DynamicTree.RayCast: (line 280)
b2BroadPhase::RayCast: (line 779)
b2World::RayCast: (line 840 ff)
so the as-operation fails in
b2BroadPhase::GetUserData: (line 620)
Regards,
Uli
I think i found a bug which occurs when calling b2World::RayCastOne() using b2BroadPhase instead of b2DynamicTreeBroadPhase:
the arguments are interchanged:
b2DynamicTree.RayCast: (line 280)
Code:
maxFraction = callback(subInput, node);
b2BroadPhase::RayCast: (line 779)
Code:
subInput.maxFraction = callback(m_queryResults[i], subInput);
b2World::RayCast: (line 840 ff)
Code:
function RayCastWrapper(input:b2RayCastInput, proxy:*):Number
{
var userData:* = broadPhase.GetUserData(proxy);
{
var userData:* = broadPhase.GetUserData(proxy);
so the as-operation fails in
b2BroadPhase::GetUserData: (line 620)
Code:
return (proxy as b2Proxy).userData;
Regards,
Uli