node.js - How to run CANVASENGINE server and physics world -
node.js - How to run CANVASENGINE server and physics world -
hi.
i'm using framework canvasengine node.js. i'm using box2d framework (physic engine).
the problem have canvasengine framework running (so it's waiting connections). want run infinite loop stepping physics world (world.step(fps, iterations)), seems threads aren't existent in node.js. so, how can accomplish this?
thanks help!
setinterval(function(){world.step()},1000/60)
should step world @ 60 fps
node.js
Comments
Post a Comment