Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualserumas

Posted 29 September 2012 - 03:21 PM

air is air density 0.0..1.0f changing this to 0.5f will make movement like in water , with velocity dumping
Satisfy constraints - than your object is from multiple atoms conected with constrains that these atoms keep shape or angle or something other rull.

take a look to http://graphics.cs.c...rs/jakobsen.htm
there is code samples, basic start making verlet system

Oh i made very big mistakes in move(), sorry, I was a little bit drunk that night :)
it should be:

vector2 vel=vec-last_vec;
last_vec = vec;
vec+=vel*air+acceleration;

#3serumas

Posted 29 September 2012 - 03:20 PM

air is air density 0.0..1.0f changing this to 0.5f will make movement like in water , with velocity dumping
Satisfy constraints - than your object is from multiple atoms conected with constrains that these atoms keep shape or angle or something other rull.

take a look to http://graphics.cs.c...rs/jakobsen.htm
there is code samples, basic start making verlet system

Oh i made very big mistakes in move()
it should be:

vector2 vel=vec-last_vec;
last_vec = vec;
vec+=movement_vel*air+acceleration;

#2serumas

Posted 29 September 2012 - 03:06 PM

air is air density 0.0..1.0f changing this to 0.5f will make movement like in water , with velocity dumping
Satisfy constraints - than your object is from multiple atoms conected with constrains that these atoms keep shape or angle or something other rull.

take a look to http://graphics.cs.c...rs/jakobsen.htm
there is code samples, basic start making verlet system

#1serumas

Posted 29 September 2012 - 03:05 PM

air is air density 0.0..1.0f changing this to 0.5f will make movement like in water , with velocity dumping
Satisfy constraints - than your object is from multiple atoms conected with constrains that these atoms keep shape or angle or something other rull.

take a look to http://graphics.cs.cmu.edu/nsp/course/15-869/2006/papers/jakobsen.htm

PARTNERS