Professional Documents
Culture Documents
Slidesf PDF
Slidesf PDF
Dynamics
Andrew Witkin
Carnegie Mellon University
• Desired Behavior:
– The bead can slide freely
along the circle.
– It can never come off,
however hard we pull.
• Question:
– How does the bead move
under applied forces?
I. Implicit:
C(x) = x - r = 0
II. Parametric:
x = r cos θ,sin θ
Point-on-circle
C=N⋅x x =
f + fc
∂ m
C= N⋅x
∂t
=N⋅x+N⋅x ¨ = 0, solve for λ:
Set C
N⋅x N⋅f
λ = -m -
N⋅N N⋅N
∂C ∂2C Constraint force is λN.
Notation: N = , N =
∂x ∂x∂t
C = - αC - βC, instead of
C=0
α and β are magic constants.
q = WQ q = x 1,x 2, ,x n
q: 3n-long state vector. Q = f 1,f 2, ,f n
m1
Q: 3n-long force vector. m1
m1
M: 3n x 3n diagonal mass M=
mn
matrix. mn
W: M-inverse (element- mn
Constraint
Global and Local
Each constraint
must know how ∂C ∂C ∂2C ∂2C
, ,
to compute these C C ∂x 1 ∂x 2 ∂x 1∂t ∂x 2∂t
x
p1
v x Distance Constraint
f
m
v p2 C = x1 - x2 - r
f
m
x x x …F
F F F
v v v
f f … f
m m m C C C … C
Added Stuff
x I. Implicit:
θ C(x) = x - r = 0
II. Parametric:
Parametric:
x
x = r cos θ,sin θ
θ • Constraint is always
met exactly.
• One DOF: θ.
Point-on-circle • Solve for θ.
x = Tθ chain rule
f +
Tθ = m cf combine