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

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -