Mexxgen 0 Posted March 4 Hello folks, i want to simulate a heart beating. And i am really bad at coding so... i managed implementing a sin function and fit it between other values so the heart doesnt get below 0 or the other direction because i connected it to the pscale of single point. A friend of mine told me to set up a sleep function after one heart beat but we also dont know how. Is there any way to do a complete heart beat algorithm? If i could understand the math behind it parallel it would be awesome too In the end i want it to transfer the position data to a vellum surface.... Share this post Link to post Share on other sites
konstantin magnus 845 Posted March 4 (edited) Hi Max, you are probably better off by drawing the function as a ramp curve and displace the mesh along its normals. float f = chf('freq'); float s = chf('scale'); float t = @Time * f; float disp = chramp('cardio', t); v@P += v@N * disp * s; If you upload the heart mesh, perhaps someone can setup a quick vellum simulation, too. heart_rate.hipnc Edited March 4 by konstantin magnus Share this post Link to post Share on other sites