Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Game Physics
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#5
RE: Game Physics

(02-11-2014, 03:23 AM)DreamScripters Wrote: when you throw a object fast enough in Amnesia and it collides with something it is going so fast that the computer itself can't calculate the collision fast enough to stop it from clipping/glitching

That's pretty much right. Basically a game has to work out where an object is for every frame, and there are only so many frames it can process within a second.

So a moving object can only have it's position calculated a limited number of times within a second, and the physics engine needs to know when one object is colliding with another, but again the time it has to work that out is limited.

So, if an object is moving so fast that within a single frame it can pass enough distance to go through a wall, then the physics engine will never know that there should have been a collision. One frame, the chair is on one side of the wall, then the next frame, the chair has moved, and now its the other side of the wall, the engine only thinks in frames & it can't process anything between a frame... so no collision!

Normally, a physics engine will use its own frames for calculation of collisions & such separate to the rendering engine frames (how much FPS you get running the game). I don't really know enough to say why, but afaik it's to ensure some consistency in physics behaviors independent of how fast the game is actually running. This basically means that if given the chance, a very powerful computer could process more physics 'steps' per second, and therefore increase the accuracy of the collisions, and get rid of those glitches! But, physics processing is generally expensive on the processor

Hope that explains it Smile

(This post was last modified: 02-11-2014, 03:19 PM by Adrianis.)
02-11-2014, 03:18 PM
Find


Messages In This Thread
Game Physics - by DreamScripters - 02-11-2014, 03:23 AM
RE: Game Physics - by Daemian - 02-11-2014, 04:22 AM
RE: Game Physics - by DreamScripters - 02-11-2014, 05:17 AM
RE: Game Physics - by Mudbill - 02-11-2014, 10:04 AM
RE: Game Physics - by Adrianis - 02-11-2014, 03:18 PM
RE: Game Physics - by Mudbill - 02-11-2014, 03:37 PM
RE: Game Physics - by GrAVit - 02-12-2014, 09:44 AM
RE: Game Physics - by Daemian - 02-12-2014, 10:26 AM



Users browsing this thread: 1 Guest(s)