|
SOLVED.
Caused by unitialised vars, due to code being placed in wrong position.
When I had moved code from FlashDevelop I placed function calls above some variables that were defined after these calls, like this:
............................... test(); testWheel();
var m_sprite:Sprite; var m_world:b2World; var m_timeStep:Number = 1.0 / 30.0; var m_physScale:Number = 30; ...............................
So my functions used unitialised numbers containing NaNs which were used to create circle positions, which were themselves NaNs and so the draw code ultimately failed.
|