Comments and answers for "Add a wave to a Translate"
http://answers.unity.com/questions/147158/add-a-wave-to-a-translate.html
The latest comments and answers for the question "Add a wave to a Translate"Answer by drChengele
http://answers.unity.com/answers/147173/view.html
The problem is you are passing the wrong argument in transform.Translate.
The third value in transform.Translate is an entire Vector3 instead of a float. Unity expects a single float value for the z coordinate of the translation, but you are giving it an entire vector so it doesn't know how to use it.
You should write:
var ondex=waveHeight*Mathf.Sin((transform.position.x/distanceToPlayer)*Mathf.PI*numIteration);
var ondey=waveHeight*Mathf.Sin((transform.position.y/distanceToPlayer)*Mathf.PI*numIteration);
transform.Translate(ondex,ondey,60*Time.deltaTime,Space.World); // we took out the Vector3.forwardFri, 22 Jul 2011 14:59:58 GMTdrChengeleAnswer by malakief
http://answers.unity.com/answers/147159/view.html
i forgot the error message:
BCE0023: No appropriate version of 'UnityEngine.Transform.Translate' for the argument list '(float, float, UnityEngine.Vector3, null)' was found.
i don't understand this error :(Fri, 22 Jul 2011 14:35:54 GMTmalakief