Jump to content
Sign in to follow this  
  • entries
    30
  • comments
    23
  • views
    2,141

Physics in Games

Sign in to follow this  
VagueIncentive

244 views

Half Life 2 was the first game to have a proper 3d physics system implemented, and while it wasn't flawless, it worked. It allowed the player to grab specific items, and carry them around and throw them into other objects, which would react accordingly. This was shown off a lot throughout the game, since the developers were proud of it. Now, it has become commonplace for almost every game to have a physics engine, as it's called, although it doesn't have to be a main gameplay element.

The topic of physics is particularly interesting when you look at the most popular genre, first person shooters. Some games use a projectile to calculate where the bullet will go, while others just use a "hitscan" system. Hitscan is when the path of the bullet is determined as a ray, protruding directly from the player's gun. It could go perfectly straight where its being aimed but most of the time there is a small deviation. This method is simple but effective, as it allows for much faster calculations to be done by a multiplayer server. If the ray hits a player, do damage, if not it will either hit a wall or continue on to nothing. The projectile method actually launches the bullet and does all of the physics calculations for it, such as being affected by gravity and other such variables. This method is used by all of the games in the Battlefield franchise, and is an integral part of the gameplay. Because the fighting happens on such a massive scale, having the bullet travel realistically makes a big difference. Different weapons shoot with different initial velocities, and some have less gravity affecting them. This is used to make some of the weapons fair, such as being able to do more damage but having a much slower velocity makes leading and actually hitting the target much more difficult. The drawbacks of this system are that the server is doing hundreds or thousands of these calculations per second, and with up to 64 players on a server at once, it can be very resource intensive. For people with poor internet, it can result in some strange errors, such as a shot hitting you after you rounded a corner, or being hit by shots that clearly missed. Due to advancements in technology, these calculations have become more efficient, and the fact that we can create a relatively accurate simulation of that many bullets at once is an impressive feat.

Sign in to follow this  


2 Comments


Recommended Comments

Actually Nate, it was more like a psuedo-3D. Everything was technically on the same level, but the map was split into several sections which were rendered x pixels higher or lower on the screen to give the illusion of 3D. For example, you couldn't aim the gun up or down, yet if you were standing on level x, you could hit anything "above" or "below" you. There's actually a video on The Game Theorists channel that discusses this in way more depth than I just did, if you want to check it out.

Share this comment


Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Terms of Use

The pages of APlusPhysics.com, Physics in Action podcasts, and other online media at this site are made available as a service to physics students, instructors, and others. Their use is encouraged and is free of charge. Teachers who wish to use materials either in a classroom demonstration format or as part of an interactive activity/lesson are granted permission (and encouraged) to do so. Linking to information on this site is allowed and encouraged, but content from APlusPhysics may not be made available elsewhere on the Internet without the author's written permission.

Copyright Notice

APlusPhysics.com, Silly Beagle Productions and Physics In Action materials are copyright protected and the author restricts their use to online usage through a live internet connection. Any downloading of files to other storage devices (hard drives, web servers, school servers, CDs, etc.) with the exception of Physics In Action podcast episodes is prohibited. The use of images, text and animations in other projects (including non-profit endeavors) is also prohibited. Requests for permission to use such material on other projects may be submitted in writing to info@aplusphysics.com. Licensing of the content of APlusPhysics.com for other uses may be considered in the future.

×
×
  • Create New...