This website uses cookies to ensure you have the best experience. Learn more

Physics In Video Games Essay

1229 words - 5 pages

There are a few different physics engines that programmers use now for their games. There are 2 main physics engines that programmers use: Havok, and Math Engine.

A Physics Engine is the code that game companies buy or Build to put in their code. The code is already written and they just have to implement the code in their program.

The thing about Physics in video games is that none of it has to be realistic. Most of the physics in older games aren't close to being realistic for there were way too many equations the program would have to solve and it would slow it down. There are arguments that go on that unrealistic games are more fun, or realistic games are more fun.

Video ...view middle of the document...

postion.y = 0; (Or wherever floor is)
Joe.velocity.y = 0;
Joe.acceleration = 10;
Joe.jumping = NO;

Loop
If (jump key is pressed)
{
Joe.velocity.y = 100;
Joe.jumping = YES;
}

if (Joe.jumping == YES) /* Move Joe if we are jumping */
{
Joe.velocity.y = Joe.velocity.y - Joe.acceleration
Joe.postion.y = Joe.postion.y + Joe.velocity.y
}

if (Joe.postion.y <= 0) /* Check to see if Joe has hit floor */
{
Joe.velocity.y = 0;
Joe.jumping = NO;
}
End Loop

this code will continue to run until joe hits the floor after the jump key is pressed.

The loop means that it will continue to run the statements on the inside of the loop until the loop fails in its test.

so the program will show this each times it loops.

Loop0 : Joe.velocity.y = 0 Joe.postion.y = 0
Loop1 : Joe.velocity.y = 100 Joe.postion.y = 100
Loop2 : Joe.velocity.y = 90 Joe.postion.y = 190
Loop3 : Joe.velocity.y = 80 Joe.postion.y = 270
Loop4 : Joe.velocity.y = 70 Joe.postion.y = 340
Loop5 : Joe.velocity.y = 60 Joe.postion.y = 400
Loop6 : Joe.velocity.y = 50 Joe.postion.y = 450
Loop7 : Joe.velocity.y = 40 Joe.postion.y = 490
Loop8 : Joe.velocity.y = 30 Joe.postion.y = 520
Loop9 : Joe.velocity.y = 20 Joe.postion.y = 540

Loop10: Joe.velocity.y = 10 Joe.postion.y = 550
Loop11: Joe.velocity.y = 0 Joe.postion.y = 550
Loop12: Joe.velocity.y = -10 Joe.postion.y = 540
Loop13: Joe.velocity.y = -20 Joe.postion.y = 520
Loop14: Joe.velocity.y = -30 Joe.postion.y = 490
Loop15: Joe.velocity.y = -40 Joe.postion.y = 450
Loop16: Joe.velocity.y = -50 Joe.postion.y = 400
Loop17: Joe.velocity.y = -60 Joe.postion.y = 340
Loop18: Joe.velocity.y = -70 Joe.postion.y = 270
Loop19: Joe.velocity.y = -80 Joe.postion.y = 190
Loop20: Joe.velocity.y = -90 Joe.postion.y = 100
Loop21: Joe.velocity.y =-100 Joe.postion.y = 0

You notice once it starts after the jump key is pressed that he will go up to 100 units and continue to go up until his velocity equals zero. Then after velocity is less than zero he will go down until he hits the ground.

Rigid body physics is one the more complex equations that games have to go through. A deformable body can be modeled as a system of point masses connected by springs. The bodies can be curve masses(e.g., hair or rope), surface masses (e.g., cloth or the surface of a body of water), or volume masses (e.g., a...

Other Essays Like Physics In Video Games

Final Fan Essay

664 words - 3 pages Paul Huckstep Eng 102 Dr. Hill September 04, 2015 CS p.53 (1&2) 1. My semester topic is: Do violent video games promote violent behavior? Some stakeholders in this controversy include: a. Video game players: -enjoyable leisure time activity -could cause psychological trauma -videogames could be harder to obtain if legislature changed laws regarding how video games are sold. -Are video games just a fun distraction

The Physics Engine of Unity 3D

1656 words - 7 pages high precision applications need a really high computing power and are normally only used by scientists, whereas the realtime calculation is used for computer games. Physics in computer games is getting more and more important. If objects and players behave physically correct, the overall gaming experience enhances. Before I go into detail about a physics engine, there are some fundamentals to explain. What is Physics and what does it

Unity 3d Physics Engine

1659 words - 7 pages high computing power and are normally only used by scientists, whereas the realtime calculation is used for computer games. Physics in computer games is getting more and more important. If objects and players behave physically correct, the overall gaming experience enhances. Before I go into detail about a physics engine, there are some fundamentals to explain. What is Physics and what does it mean? Wikipedia describes it in the

Video Games

641 words - 3 pages Deairra Freeman Stark-Wroblewski PSY 1100 Do Video Games Lead To Violence? What am I being asked to believe or accept? In this article, Do Video Games Lead to Violence, the argument being made is that video games either leads to violence or does not lead to violence. There have been arguments that video games cause psychological and physiological problems in children that result to violence. An opposing argument believes that video games

The Effects of Video Games and Violence

601 words - 3 pages James Lind 21st Century 03/14/15 Elizabeth Larson The effects of video games and violence Violence is not measured by playing video games. All studies do not show a link between video games and acts of violence, but research does show an increase in aggression. (Fournis & Abou, 2014) There have been debates about how violent video games trigger violent, aggressive behavior. (Fournis & Abou, 2014) Violent video games can impact a

Video Game Are Not Violent

670 words - 3 pages Video Games Do Not Promote Violence In America 68% of households have a gaming console of some kind. Many people in the world today play video games. Some video games are violent war games, others are racing games, or games of mass creation. Many people feel that violent video games can promote or cause many things such as, violence, bullying, theft, school shootings, and vandalism. In some games, for example, in Grand Theft Auto 5 a

Video Games

1106 words - 5 pages "A video game is a game that involves a user interface to generate visual feedback on a video device" (Haugen 5). The word video in video game traditionally mean a "raster display device" (Prensky 14). However, with the popular use of the term "video game", it now implies any type of display device. Super Mario Brothers, Sonic the Hedgehog, and Street Fighter are familiar names. They are all best selling games of major video game consoles. Over

Do Video Games Have a Negitve Effect

1361 words - 6 pages or no benefit, but I myself have played video games and experienced the benefits from playing them. For example, the game “Guitar Hero” is very much unrelated to actual guitar and I didn’t learn how to play guitar solely from playing the game, but the game helped me pick up useful skills necessary to playing real guitar. I was in guitar class and my teacher told me to stretch my fingers in a certain way making a chord, he told me that for a while

The Effects Of Video Games On Violence

2094 words - 9 pages Video game violence has remained a controversy for numerous years. With the advancement of technology, video games have progressed in its practicality and genres. Technology has allowed video games to become very sophisticated and lifelike. This development has brought video games to a multi-billion dollar industry. Nevertheless, with the level of practicality, there are also negative affects to humanity. Since the manufacture of violent video

Violentvideo Games

1318 words - 6 pages Nowadays video games are very popular among young generation, because they are one of the largest entertainment ways in our society. This digital time spending is loved by millions of people all over the world, notwithstanding gender, age, and socioeconomic position. A recent study of children in their early ages found that nearly a third played video games every day, and that 7% played for at least 30 hours a week (“Video games: Cause for

In-Game Killers Turn to Real Life Killers

1252 words - 6 pages Talens, John Zem R. ENGLCOM S17A Argumentative Essay – Final Paper In-Game Killers turn to Real Life Killers You are a killer, right? No? A thief? A drug user? If you played Grand Theft Auto (GTA), probably you are a criminal. Am I not right? Even though these are the impressions made by people on children that play violent video games, some people claimed that one of the excellent teaching tools available is video games because they

Related Papers

Violence In Video Games Essay

989 words - 4 pages promote violence. There actually is no conclusive evidence, either way, that video games cause violent behavior. But the games are violent, and in some cases do promote aggression, primarily in men rather than women. Games such as DOOM and Duke Nukem 3D are most often blamed. Almost all first-person shooters are graphic and involve killing with high-powered weapons; gratuitous blood and guts spewing around are commonplace. One game’s claim to fame

Gender Representations In Video Games Essay

3965 words - 16 pages Literature Review: Gender Representations in Video Games Table of Contents Gender Representations in Video Games 4 Men 4 Women 5 Impact of Gender Representations in Video Games 6 Men 6 Women 6 Relationships and Interactions between Men and Women 7 Current Limitations and Topics for Future Review 8 Conclusion 9 References 10 Many individuals believe that the terms sex and gender have the same meaning and thus are often

Generational Differences In Video Games Essay

563 words - 3 pages Generational Differences in Video Games The evolution of video games has seen a dramatic transformation over the course of the past few decades. When comparing Pong to Halo, or the Atari 2600 console to an Xbox, major differences are apparent. Advances in technology have resulted in changes to graphics and controllers, in addition to communication between characters and players. Generation X (those born between 1956-1976) experienced games

Violent Video Games Don't Lead To Increases In Violent Behavior

1472 words - 6 pages fades to black and two friends laugh at each other for the graphic execution and go on playing the newest release of the Mortal Kombat series. While today’s games are ridiculously violent, can one honestly believe they can open a portal to hang their enemies? Do video games really warp the mind and cause players to be aggressive? Recent studies say no. It is not the game’s fault for a player to react violently in real life. Other forms of