Hi All, im using the alchemy port and getting this weird error when i try to create new sensor:
TypeError: Error #1006: value is not a function.
at cmodule.Box2D::FSM__Z20b2Body_CreateFixturePvP8_AS3_Val/work()
at Function/<anonymous>()
at Function/<anonymous>()
at Box2DAS.Dynamics::b2Fixture()[/Users/plug-inmedia/Documents/PIM_Work/bbc_driving_academy (trunk)/Production/Workspace/libs/box2d_alchemy/Box2DAS/Dynamics/b2Fixture.as:25]
at Box2DAS.Dynamics::b2Body/CreateFixture()[/Users/plug-inmedia/Documents/PIM_Work/bbc_driving_academy (trunk)/Production/Workspace/libs/box2d_alchemy/Box2DAS/Dynamics/b2Body.as:102]
heres my code ( this error is being thrown on the last line ( CreateFixture ) ):
var sBody : b2Body ;
b2Def.circle.m_radius = rad / PIXELS_TO_METERS ;
b2Def.fixture.shape = b2Def.circle ;
b2Def.body.position.v2 = new V2( px * _mapScale, py * _mapScale ) ;
var my_fixture:b2FixtureDef = new b2FixtureDef();
my_fixture.isSensor=true;
sBody = _world.CreateBody( b2Def.body ) ;
sBody.CreateFixture( my_fixture ) ;
Any help would be greatly appreciated! Cheers!
TypeError: Error #1006: value is not a function.
at cmodule.Box2D::FSM__Z20b2Body_CreateFixturePvP8_AS3_Val/work()
at Function/<anonymous>()
at Function/<anonymous>()
at Box2DAS.Dynamics::b2Fixture()[/Users/plug-inmedia/Documents/PIM_Work/bbc_driving_academy (trunk)/Production/Workspace/libs/box2d_alchemy/Box2DAS/Dynamics/b2Fixture.as:25]
at Box2DAS.Dynamics::b2Body/CreateFixture()[/Users/plug-inmedia/Documents/PIM_Work/bbc_driving_academy (trunk)/Production/Workspace/libs/box2d_alchemy/Box2DAS/Dynamics/b2Body.as:102]
heres my code ( this error is being thrown on the last line ( CreateFixture ) ):
var sBody : b2Body ;
b2Def.circle.m_radius = rad / PIXELS_TO_METERS ;
b2Def.fixture.shape = b2Def.circle ;
b2Def.body.position.v2 = new V2( px * _mapScale, py * _mapScale ) ;
var my_fixture:b2FixtureDef = new b2FixtureDef();
my_fixture.isSensor=true;
sBody = _world.CreateBody( b2Def.body ) ;
sBody.CreateFixture( my_fixture ) ;
Any help would be greatly appreciated! Cheers!