Skip to main content

​​How is Math used in Video Game designing and programming.!

 ​​How is Math used in Video Game designing and programming?

Math is an absolute fundamental foundation to successful game development and game design.

Maths in programming

Math is everything when it comes to games. From having the ability to calculate the trajectory of an Angry Bird flying through the sky, to ensuring that a character can jump and come back down to the ground without the help of mathematics, games simply wouldn't work.

A character wouldn't be able to walk up a slope, slide down a slide, fire a bullet from a gun, or even jump without the help of the mathematics. The most basic of games use some form of math to the most complex of games. Math is essential to the production of games. It is the flour to the cake that game developers are trying to bake. Without it, the cake wouldn't rise.

Math is used in every aspect of game development, including art. Maya is a math based program that plots out the vertices and normals in mathematical form while the artist just uses a tool that allows them to create stunning 3D graphics without worrying about math. Simply put, you could model Godzilla in notepad and push it into Maya, if you knew were to plot the points in numerical form (which is extremely difficult).

However, a lot of the math is computed at runtime and handled by the game engines that render back face culling, and the other nitty gritty things that would be too cumbersome to do without the use of using an engine to alleviate the math calculation portion at runtime.

A lot of math in gameplay scripting is fairly simple, but math used in game engine architecture is far more complex and a lot more taxing mentally. Math in game development is simulated either by the developer or handled by the engine at runtime by running computations to calculate the operation that is needed.

Comments

Popular posts from this blog

Earth's shine seems to be fading due to global warming as the oceans heat up

  In recent years, the climate change crisis has escalated to unprecedented levels, resulting in unimaginable and life-changing consequences. An acclaimed new study contends that global warming is dimming our planet, literally! Global warming is causing the Earth's brightness to decrease, according to a new study. Now you're probably wondering, "how do you even measure something like that?" But researchers have their ways. Keeping track of the Earth's shine requires them to calculate the Earth's 'albedo', or reflectance. The albedo is calculated utilizing something called the 'earthshine'. The crescent moon is most noticeable immediately after sunset or before sunrise, when its dazzling crescent gives way to a dark disc with a faint glow. A crescent moon's unlit parts are known as earthshine because they are glowing from the light reflected from the Earth. The study revealed that earthshine data over the last three years indicates that our ...

Mechanical and optical mouse

  How does the Mechanical Mouse work? A mechanical mouse consists of a heavy rubber ball whose movement makes the cursor move on the screen. Commonly known as the ‘rolling rubber ball’ mouse, it is considerably heavy, thanks to the rubber ball, a few wheels, and a number of other mechanical parts present inside it. When you move the mouse, the ball rolls beneath it, pushing the two plastic wheels/rollers linked to it in the process. One of those wheels detects side-to-side movement (x-axis wheel) and the other (y-axis wheel) detects movement in the up-and-down direction. Both of these wheels consist of spokes that ‘break’ a thin light beam inside the mouse. The number of times the beam breaks helps to calculate how far the mouse has moved. For instance, when you move the mouse straight up, the y-axis wheel turns. The farther up you go, the more the ball pushes the wheel and the more it breaks the light beam. This helps to determine how far the mouse has moved straight up....

How do Ants sense Food?

  S ugar has a slight odor, particularly granulated beet sugar. While all species of ants can differentiate between a wide variety of odors, the smelling range differs from a few centimeters to meters. Desert ants can smell sugar from up to 3 meters. the food sources that ants cannot smell from a distance they 'smell' it (contact chemoreception) by touching it. So in a way, all the food they detect, they detect it by smelling. So yes, ants smell (although contact chemoreception is more like taste) the sugar. The ant colonies send scout ants to search for food in various directions, often up to a range of 100 to 200 meters.(Depends on the territorial boundary and time of the year). The scout marches steadily in less circuitous paths initially if it has memories of previous feeder locations. (Ants use visual landmarks, and a stereo-smell system to create an odor map and navigate) Periodically it will halt and look for olfactory cues. It will then take into a more circuitous rando...