- Home /
Input.GetRotation and Input.GetPosition on Unity 3.5
So I downloaded Unity 3.5 Dev Preview, and it turns out these 2 undocumented functions have been deprecated, and the message that appears is "use ps3 move API instead".
I have 2 questions :
Is there a replacement function for this? Something i can use in place of these?
What is the PS3 move api? Is there any documentation for that?
If you actually bought a Unity PS3 license, you don't need to ask here.
Here's the thing, I havent. I just have the standard Unity 3.5 dev preview... but where anytime I use these functions in Input class, I'm thrown this error.
What do you expect those functions to do? As you say, they're undocumented, so I'm not familiar with them.
I'm using OpenNI for kinect integration of unity, and this is used in their APIs. Since Unity 3.5 isn't official yet, I don't think I can ask them, so I figured I could ask for a temporary solution.
Answer by aylwinlo · Feb 14, 2012 at 11:11 PM
I had the same problem. Just to see if I could get away with it, I made these changes and got the project to compile and run properly. I'm not sure if it will be useful in all cases, though.
/// simply called the regular input
/// @param deviceID see Input reference
/// @return see Input reference
public Quaternion GetRotation(int deviceID)
{
// return Input.GetRotation(deviceID);
return Quaternion.Euler(Vector3.zero);
}
/// simply called the regular input
/// @param deviceID see Input reference
/// @return see Input reference
public Vector3 GetPosition(int deviceID)
{
// return Input.GetPosition(deviceID);
return Vector3.zero;
}
Answer by koichisenada · Mar 25, 2012 at 02:39 PM
I have asked the same question at the official forums of OpenNI community. The answer that I have received there offers to remove both methods from the NIIput.cs file.