Problem with Interpolation method

Hello, I used this link, http://hub.jmonkeyengine.org/forum/topic/move-object-smoothly-from-vector3-a-to-vector3b/ to try and interpolate between two Vectors, but i get this error, [java]no suitable method found for interpolate(Vector3f,Vector3f,float)
method Tuple3d.interpolate(Tuple3d,double) is not applicable
(actual and formal argument lists differ in length)
method Tuple3d.interpolate(Tuple3d,float) is not applicable
(actual and formal argument lists differ in length)
method Tuple3d.interpolate(Tuple3d,Tuple3d,double) is not applicable
(actual argument Vector3f cannot be converted to Tuple3d by method invocation conversion)
method Tuple3d.interpolate(Tuple3d,Tuple3d,float) is not applicable
(actual argument Vector3f cannot be converted to Tuple3d by method invocation conversion)[/java]

Here is the code snippet.
[java]Vector3f beginVec = new Vector3f(gun.getLocalTranslation());
Vector3f finalVec = new Vector3f(gun.getLocalTranslation());
finalVec.x = gun.getLocalTranslation().x - 1.5f;
finalVec.y = gun.getLocalTranslation().y + 0.3f;
finalVec.z = gun.getLocalTranslation().z = 1.18f;
float time = 0;
time += tpf2;
float part = time / 2;
float rads = -FastMath.HALF_PI + FastMath.PI * part;
part = (part + 1) * 0.5f;
Vector3f current = new Vector3d().interpolate(beginVec, finalVec, part);
[/java]
Also, Im terrible at vectors so i could have a mistake with vector math in the code.

Which version of JME are you running?

How do i find out?

Actually, now reading your code and stack trace I’m wondering what the heck Vector3d is… or Tuple3d for that matter.

These are not JME classes so I don’t know where they came from.

They are javax.vecmath classes. not that it makes it any more right. O.P must have included a 3:d party library somewhere in the project and picked the wrong Vector classes in the import statements.

Oh sorry, it is Vector3f not Vector3d - problem fixed. Its just that pspeed made a mistake in the code.