Ok, well lets see
There are a few forces acting on the object here,
1) Gravity is accelerating the object down
2) Friction is pushing back (if applies.. )
So for gravity the force = mass * acceleration:
lets let M be the mass of the object, and A be the angle of incline from the horizontal, also lets call the acceleration of gravity g ( = 9.8 m/s/s)..
Therefore the downward force is f = M*g*sin(A)
Since there is no friction in this case, you only have to worry about how fast and what direction the object is moving..
each second the vector will grow by a small amount, this can be determined by the acceleration of he object.
acceleration = force / mass
= M*g*sin(A) / M
= g*sin(A)
So basically all you have to do is take a vector pointing in the direction of the incline and use this as an acceleration vector. It will have a magnetude of g*sin(A), then for each second add it to the velocity vector of the object (this will accelerate it down the hill) and move the object along the velocity vector.
This should work, and to add friction to the formula isn''t too hard. Basically you''ll have a force counteracting the acceleration due to gravity, and the force accelerating the object will look like ( M*g*sin(A) - X ) where X is the force due to friction.
I don''t have my memory with me today, so I forget what exacty is involved in getting the force due to friction... it does invlove a coefficient of friction (different for different materials ) and the force pushing down on the surface.
So basically you''d take the coefficient of friction, F, and the force of gravity on the object pushing down on the plane g*cos(A) and multiply them together (this is where I could be wrong) to get the force of friction - which we''ve labeled X.
This gives an acceleration vector of (M*g*sin(A) - g*cos(A))/M
- well, I could be a little wrong with the friction part, but it''s a start. At least the stuff without friction works and should give you a good start. The important idea is that if you want to simulate friction all you have to do is slow down the acceleration vector a little.
If anybody out there can correct me, I''d be happy because I don''t feel like pulling out my physics book - it''s way too heavy!
![](smile.gif)
Anyway, enjoy