Search found 3 matches

by bendaowei
Sat May 09, 2009 4:15 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Position correction tutorial
Replies: 13
Views: 20407

Position correction tutorial

I read the position correction introduction : http://www.gphysics.com/archives/35
They really help a lot. But I don't know what exactly the algorithms are.
Could you please help me provide some more detailed materials introducing these algorithms?
Thanks a lot!
by bendaowei
Thu Apr 16, 2009 2:46 am
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Box 2D, revolute joint effect mass matrix
Replies: 2
Views: 3272

Re: Box 2D, revolute joint effect mass matrix

You need to use the outer product: v * transpose(v) This is very true. J v = [1 0 -r.y][v.x] = [v.x - r.y * omega, v.y + r.x * omega] [0 1 r.x][v.y] [omega] J JT = [1 0 -r.y][1 0] = [1 + r.y * r.y][0 + -r.y * r.x] [0 1 r.x][0 1] [0 + -r.y * r.x][1 + r.x * r.x] [-r.y r.x] Thanks a lot
by bendaowei
Wed Apr 15, 2009 4:05 pm
Forum: Research and development discussion about Collision Detection and Physics Simulation
Topic: Box 2D, revolute joint effect mass matrix
Replies: 2
Views: 3272

Box 2D, revolute joint effect mass matrix

J = [ -I, -(-r1.y i, r1.x j), I , (-r2.y i, r2.x j)] K = J M-1 JT And the result is K = [(1/m1 + 1/m2) * eye(2) - skew(r1) * invI1 * skew(r1) - skew(r2) * invI2 * skew(r2)] = [1/m1+1/m2 0 ] + invI1 * [r1.y*r1.y -r1.x*r1.y] + invI2 * [r1.y*r1.y -r1.x*r1.y] [ 0 1/m1+1/m2] [-r1.x*r1.y r1.x*r1.x] [-r1.x...