At 1/10/06 08:56 PM, authorblues wrote:
At 1/10/06 08:38 PM, BleeBlap wrote:
if you want to write it, I think it's a great idea.
i actually made a video tutorial on kinematics. fwe and i are probably going to do a whole series of them, so email (authorblues@gmail.com) me if you have a specific request.
the only problem with that video thingy, first its inverse-kinematics :p
kinematics is for example, knowing the acceleration of a body at time t, you can find its velocity and position at time t, or like in a string like that, if you know the angular difference and distance between each point, you can find out where the end point is like humans can touch their nose in the dark because using kinematics they know where their finger is
inverse kinematics is the opposite like in this, finding the angular difference and distance between each point from a set of coordinates
the other problem (not a problem but i just dont like it) is using trigenometry, its unnecesary, using trig, for each link in the string, you have to use sqrt, atan2, sin and cos whereas you can use simple vector math and have only one sqrt per link
(two coordinates (x1,y1) (x2,y2))
var x:Number = x2-x1;
var y:Number = y2-y1;
var d:Number = Math.sqrt(x*x+y*y);
x2 += (x/d)*(d-5);
y2 += (y/d)*(d-5);
here the distance between each point would be 5