Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is this game physics?

Tags:

math

Related to my question here but not enough to open a new question.

I wanted to make a good tower defense game and found this site. I saw math in it and made the mental leap that it was "game physics." Maybe it's not. I don't know. I was hoping someone could tell me. If it is not what kind of game programming is it? Just math you have to know for angles and what not (they have a tutorial here.) Is this 2d game mechanics/physics?

I know nothing about the site. Just one that game up in google.

Thank you again.

like image 294
johnny Avatar asked Jan 19 '26 08:01

johnny


1 Answers

The first link is not physics at all; all he's doing is writing code to move triangles along a path with waypoints; the triangles are defined to move along that set path at constant velocity, and they do not interact with the world in any way. The tutorial has some trigonometry in it that is necessary for doing game physics, and you could even say that the bouncing ball demo is a simulator for perfectly-elastic collisions. However, perfectly-elastic collisions between spheres and planes is arguably one of the simplest of many interactions you'll need to model in any reasonably-interesting game.

like image 153
Matt J Avatar answered Jan 23 '26 19:01

Matt J