Advertisement

Is this "isometric"...and how did he do it?

Started by March 01, 2001 06:26 PM
2 comments, last by jag_oes 23 years, 11 months ago
Hey, I found this website a few days ago and I thought it was pretty cool: http://www.com-ebusiness.de/ . First question: is this what you would call "isometric". Also, would anybody happen to know of any information about the physics used? I know I am being broad here but I just don''t know any terms to use...I''m mainly looking for something on how to make a ball roll around on a sloping landscape like on the website. Thanks...
That site is very cool, and yes it is isometric, with some 3D thrown in, the physics is extremely simple gravity and object bouncing, which is just changing the velocity vector according to the angle it hits a surface.

Possibility
Advertisement
How can one determine the angle t which a vector hits a surface?
The angle between two vectors is like this (u and v are vectors, x is the angle):

(U . V) / (||U|| * ||V||) = acos(x)

So, U.V is the dot product of two vectors, which is like this: (U.x * V.x) + (U.y * V.y)

and you divide by their magnitudes (||U|| * ||V||) , which is essentially pythagorean sqrt(U.x^2 + U.y^2) * sqrt(V.x^2 + V.y^2)

So, that''ss give you the exact angle between the two vectors. If you have the vectors normalized (magnitude of 1) you can get rid of those nasty sqrts and a divide.

The vector of the ball is just its velocity, and I believe the vector for a wall (assuming P1 and P2 are the endpoints of a straight wall) is <(P2.x - P1.x), (P2.y - P1.y)>

Ben

This topic is closed to new replies.

Advertisement