onedayitwillmake Posted October 2, 2013 Share Posted October 2, 2013 I'm working on a game, in which I am using a separate physics engine (chipmunk.js in this case), and while doing some profiling I see that ArcadePhysics.Body#update is being called. This is taking up a not insubstantial amount of time during each frame. I'm updating my own sprite's position and rotation each frame, which is one of the things this function seems to do (as well as updating the quadtree).My question is, how can I disable this completely and why is it on by default? Link to comment Share on other sites More sharing options...
rich Posted October 2, 2013 Share Posted October 2, 2013 Just replace the Sprites body property. As long as it has the functions needed, even if they don't do anything, it will work. Link to comment Share on other sites More sharing options...
Recommended Posts