Hi, thanks for good lib!
I want to do any physics simulations(movement of objects in space, collisions, etc..) on server-side. But I don't need to render graphics, because I should save every state of the scene and send this data to client(browser, webGL) and render graphics there. So, can I do this without Xna ? I want to use only BEPU features. If it is possible, how can I create main simulation loop? I just found invoking of method Run (Xna class) in GettingStartedDemo, but I haven't any ideas to how to do this myself.
Simulation without graphics
Re: Simulation without graphics
Hi,
I think of it before and what you only need is a "heartbeat" system, a timer with which you can call space.update() in a regular basis.
(an infinite while/for loop may work too but without a little delay, CPU usage will shyrocket hard !)
I got this topic from stackoverflow about C# and timer.
EDIT: a very good example: MonoGame Game class.
Also, this means you just need a console project and using only BEPU libraries without debug drawer(s).
Hope this helps.
I think of it before and what you only need is a "heartbeat" system, a timer with which you can call space.update() in a regular basis.
(an infinite while/for loop may work too but without a little delay, CPU usage will shyrocket hard !)
I got this topic from stackoverflow about C# and timer.
EDIT: a very good example: MonoGame Game class.
Also, this means you just need a console project and using only BEPU libraries without debug drawer(s).
Hope this helps.