I’m looking to simulate (pretty much exactly) what a Damper-Animation node does for my boygrouping setup. However, in this case I would like to do it in template (c#) code running on the client rather than in a patch. Does anyone know or have some c# code that would simulate this.
I was going to try to lerp between the old value and the new value but it would be nice to emulate the behavior exactly if possible. I checked VMath as well (which is great!) but no go.
yes, thats the RK damping, but the vvvv Damper/Oscillator has a time input to control the damping speeds, so that the state arrives at a certain destination in that time. if you need that, the code gets a bit more complicated… or do you know of a RK implementation which does this?
Nope, not offhand. This code seems to get very similar results for me to the default Damping behavior (which was what I was looking for). If you can post/send the code that you are referring to I’m sure it would help me and the rest of the vvvv community!