Original Post
Hey I''m playing around with vector physics and i was looking for some resources on this topic. Google didn''t gave me any good results.
Here is what i want to do:
Make objects be affected by all the forces on them. Gravity and other forces.
So this gives me some questions:
•How can I convert spring forces into a force vector. Like if i pull the spring, a vector with a force would make it go towards it''s original position. The more i pull the spring the bigger the vector would be. If i push the spring, the vector would go the opposite way.
•How can i smooth out the movement vector
for example i have an object with an upwards pointed vector and i want gravity to slowly take the speed from the object and make it accelerate towards earth. Is it enough to say Gravity vector = (0,-50) and then the new movement vector of the object would be (0,x+(-50/100.0)) where i can control the strength og the gravity by dividing with 100. Is this just this? I''m not home right now so i can''t test it.
Maybe later i would piece it together to a simple physics engine.