“Is not a member of UnityEngine.Vector3”
Am I missing something? Both are in the script reference, yet neither seem to be allowed in unity
“Is not a member of UnityEngine.Vector3”
Am I missing something? Both are in the script reference, yet neither seem to be allowed in unity
Show more code. Usually it’s thrown because of how you’re calling it.
transform.position = Vector3.Lerp(transform.position, p(which is another viariable containing the target transform position), (Time.deltaTime * speed) / dist);
PS: What are the hypertags for code on the forums?
Was trying to place the SmoothDamp or MoveTowards where the Lerp was in the above code, from what I understand MoveTowards has a similar functionality to lerp, so I’m at a loss as to why it doesn’t work at all.
UnityEnging.Vector3
You misspelled UnityEngine
Second, both of these are STATIC methods, meaning you have to call them through the class itself if you are not already, and by the way, you showed unrelated code to your problem.
In order to use a static method, you have to call them like this: Vector3.FunctionName()
If the method is a non-static method, you can call them from the instance obj.FunctionName()
This is a common problem in the forum, seems like static and instance members seems to be a poorly understood topic these days.
the tags use standard bbcode use [ ] brackets.
They’re only in Unity 3.
–Eric