














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















Kinematics of Particles ( ) 2 2 dt d dt d dt d t v r a r v r r = = = =
Kinematics of Particles To render a particle, we need to know it’s position r.
Uniform Acceleration This shows us that the particle’s motion will follow a parabola Keep in mind, that this is a 3D vector equation, and that there is potentially a parabolic equation in each dimension. Together, they form a 2D parabola oriented in 3D space We also see that we need two additional vectors r 0 and v 0 in order to fully specify the equation. These represent the initial position and velocity at time t= 2 0 0 0 2 1 r = r + v t + a t
Mass and Momentum p = m v
0 m = m
Force ( ) f a v v v v f m dt d m dt d m dt dm dt d m = = = + =
dt d p f =
Newton’s Second Law Newton’s Second Law says: This relates the kinematic quantity of acceleration to the physical quantity of force a p f m dt d = =
Conservation of Momentum
Energy
Particle Simulation
Particle Simulation
Particle Example class ParticleSystem { int NumParticles; Particle *P; public: void Update(deltaTime); void Draw(); };
Particle Example ParticleSystem::Update(float deltaTime) { // Compute forces Vector3 gravity(0,-9.8,0); for(i=0;i<NumParticles;i++) { Vector3 force=gravity*Particle[i].Mass; // f =m g Particle[i].ApplyForce(force); } // Integrate for(i=0;i<NumParticles;i++) Particle[i].Update(deltaTime); }