diff options
Diffstat (limited to 'playground')
-rw-r--r-- | playground/src/main.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/playground/src/main.rs b/playground/src/main.rs index 754da70..0ef91ce 100644 --- a/playground/src/main.rs +++ b/playground/src/main.rs @@ -106,11 +106,12 @@ fn main() { let world_mouse = camera.screen_space_to_world(screen_space); system.particles[mouse_particle_id].position = world_mouse; + system.particles[mouse_particle_id].velocity = Vector::zeros(); system.forces.push(Box::new(Spring { particle_ids: [mouse_particle_id, particle_id], - spring_constant: 0.99, - damping_constant: 0.99, + spring_constant: 25.0, + damping_constant: 10.00, rest_length: 1.0, })); } |