Re: An opurtunity for work, for only some small code!
@24, most of the answers to those questions can be learned as you go. Some though, like the distance formula and basic algebra, are definite musts to make good games. The neat thing about the distance formula is that their dynamic: you can use as many dimensions as you like. The coordinates [2, 1] that you gave -- for solving the distance -- cannot be solved without another set of coordinates. In this instance, your equation is incomplete, so the distance can be anything, unless you wanted the answer to a 1D matrix, which is mearly a vector?
The orientation fator also is necessary; FMOD, for example, requires perpendicular vectors for forward and up orientation, or it will give you an error. There are various solutions to such a problem; some suggest the cross product, others suggest the dot product, and so on. Math is awesome like that; there is no single solution to solve a problem, but many solutions to solve many problems.
Finally, an equation like (50x-32)/3=10 can be solved algebraically, but if your going to program that in your going to need to give the computers all the values, including what x is. At least, for most mathematical problems. (There is a large collection of computer algebra systems capable of solving mathematical equations. Don't try writing one yourself. Instead try any of these ones.)
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector