Simulation without graphics

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
kolsolv
Posts: 1
Joined: Sat Apr 02, 2016 12:19 pm

Simulation without graphics

Post by kolsolv »

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.
JusTiCe8
Posts: 52
Joined: Mon Jun 01, 2015 9:02 am

Re: Simulation without graphics

Post by JusTiCe8 »

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.
Post Reply