myPhysicsLab
Kinematics: The study of motion without consideration of underlying forces
- Forward Kinematics: Computing body motion as a function of joint angles
- Inverse Kinematics: Computing joint angles as a function of body motion
Dynamics: Study of physical motion due to the application of forces and torques
Particles Systems
Mass, Momentum, and Force
Mass: m
Momentum: pβ=mv
Force: fβ=dtdpββ=mdtdvβ+dtdmβv=ma+mΛv
- If m is constant
- fβ=ma
Acceleration: a
Given constant acceleration, a0β over time Ξt
- Velocity: v(Ξt)=β«0Ξtβadt=v0β+a0βΞt
- Position: x(Ξt)=β«0Ξtβvdt=x0β+v0βΞt+21βa0β(Ξt)2
xΒ¨=m1ββfβiβ
- 1st LawοΌx=x0β+v0βt
- 2nd LawοΌf=ma
- 3rd LawοΌfABβ=βfBAβ
Total momentum in a closed system will remain constant
When particles interact, any gain of momentum by one particle must be met by an equal and opposite loss of momentum by another particle.
ftotalβ=βfiβ
f=mg
f=Gr2m1βm2ββ
fgravityβ=Gβ₯d2β₯m1βm2ββd^
d^=β₯dβ₯dβ=β₯x1ββx2ββ₯x1ββx2ββ
A simple spring force can be
fβspringβ=βkx
where k is a spring constant
x=β₯x1ββx2ββ₯βl
fβdampβ=βkdβv
Opposite to velocity
fβ=βksβxβkdβv
fβ=ΞΌ
Static friction: fβ₯NΞΌsβ
Dynamic friction: f=NΞΌkβ
f=force tangent to surface
ΞΌkβ=coefficient of static friction
ΞΌkβ=coefficient of dynamic (kinetic) friction
Hydrodynamic
fdragβ=21βΟβ₯vβ₯2cdβAv^
where v^=β₯vβ₯vβ
fliftβ=21βΟβ₯vβ₯2cLβS(Ξ±βΞ±0β)
ffieldβ=f(x)
acceleration
velocity
0
Particles can be rendered using various techniques
- Points
- Lines (form last position to current position)
- Sprites (textured quad's facing the camera)
- Geometry (small objects...)
- Or other approaches...
State Space
2nd order Ordinary Differential Equation (ODE)
xΒ¨=m1βf(x,xΛ)
vΛ=m1βf(x,v)
Phase Space (State Space)
State Position (6 * 1)
Solver Interface
Diffeq Solver
Derivative
Angular Momentum
L=rΓp
ζη©
Angular Momentum
L=rΓp=rΓmv
Rate of change of Angular Momentum
Ο=dtdLβ=vΓmv+rΓma=rΓf
转ε¨ζ―ι
L=rΓp=rΓ(mv)=mrΓv=mrΓ(ΟΓr)
L=Iβ
Ο
centripetal acceleration
fcentrifugalβ=βmΟΓ(ΟΓr)
R=[uxββuyββuzββ]
L=Iβ
Ο
I=βmTβ
T
T=β0rzββryβββrzβ0rxββryββrxβ0ββ
L=
Rigid Body Simulation Variables
Equation of Motion
I
body axis
rigid body object
Mass: m=βmiβ
Center of mass: m=β«ΟdΞ©
force
Newton-Euler Equs
Translation: ma0=mv0Λ=mxΒ¨=βfi0β=ftotal0β
Rotation: IΟΛ+ΟΓIΟ0=βΟiβ=βrΓf
I=moment of xxx (3*3 matrix)
translation: vΛ=m1ββfi0β
rotation: ΟΛ=Iβ1(βΟβΟΓIΟ)
Euler Integration
