How easily can I control the physics?
by Japhet Stevens · in General Discussion · 08/15/2008 (3:58 pm) · 3 replies
I'd like my 2d shooter game to be recordable. That is, I'd like for a player to be able to load up a recording of himself or someone else playing the game and be able to watch everything reproduced for him in real-time.
This requires deterministic, reproducible physics results. How hard would it be to get the torque game engine to do this?
I'm thinking that the recording format will be simply a snapshot of the current input (mouse location, buttons, keys) every N milliseconds.
Playback will involve somehow feeding that data to torque's physics engine as the game is running, with actual user input redirected to playback controls.
How impossible is this? :D
btw I'm a C++ graphics programmer professionally so I'm not afraid to get into the code.
This requires deterministic, reproducible physics results. How hard would it be to get the torque game engine to do this?
I'm thinking that the recording format will be simply a snapshot of the current input (mouse location, buttons, keys) every N milliseconds.
Playback will involve somehow feeding that data to torque's physics engine as the game is running, with actual user input redirected to playback controls.
How impossible is this? :D
btw I'm a C++ graphics programmer professionally so I'm not afraid to get into the code.
#2
But if you just want to kick boxes around and blow stuff up, Torque is more than up to the task!
08/15/2008 (11:51 pm)
Be aware that Torque's out-of-the-box rigid body physics can be a little wonky at times, and might be a little too coarse if you're looking for realistic physics. There are a number of third-party solutions that can be integrated into the engine to shore up its physics if you need more elaborate reactions.But if you just want to kick boxes around and blow stuff up, Torque is more than up to the task!
#3
08/16/2008 (10:52 am)
So Torque already has what I want? What a relief! Oh and I don't need anything fancy physics-wise for my 2d shooter. Just collision detection and inertia really.
Associate James Ford
Sickhead Games