I am trying to make the bridge example run in AS3.
Using the example code I have found, these lines give Compiler Errors:
jd.anchorPoint.Set((100 + 44 * i) , 250 );
jd.anchorPoint.Set((100 + 44 * numPlanks) , 250 );
1119: Access of possibly undefined property anchorPoint through a reference with static type Box2D.Dynamics.Joints:b2DistanceJointDef.
I understand the Flash Box2d port is different from standard Box2d and the Box2d API Documentation.
The Flash version has anchorPoint1 and anchorPoint2 in the b2DistanceJointDef class instead of a single anchorPoint... Im not sure what to do...
Can anyone help me port the bridge to AS3?
Thanks
Using the example code I have found, these lines give Compiler Errors:
jd.anchorPoint.Set((100 + 44 * i) , 250 );
jd.anchorPoint.Set((100 + 44 * numPlanks) , 250 );
1119: Access of possibly undefined property anchorPoint through a reference with static type Box2D.Dynamics.Joints:b2DistanceJointDef.
I understand the Flash Box2d port is different from standard Box2d and the Box2d API Documentation.
The Flash version has anchorPoint1 and anchorPoint2 in the b2DistanceJointDef class instead of a single anchorPoint... Im not sure what to do...
Can anyone help me port the bridge to AS3?
Thanks