Hi, I’m attempting to smooth some OSC data to make my object movements less horrible.
What i want to achieve is a smooth transition between the incoming data thats manipulating my X,Y,Z position.
I think i need to store my X values into a list and then do the smoothing, any help would be brilliant.
Thanks
void OnReceiveXYZ(OscMessage message){
float x = message.GetFloat(0);
float y = message.GetFloat(1);
float z = message.GetFloat(2);
transform.position = new Vector3(x,y,z);
}
void OnReceiveX(OscMessage message) {
float x = message.GetFloat(0);
Vector3 position = transform.position;
position.x = x / 100 ;
transform.position = position;
}