Hey Everyone!
I’m getting this weird error and can’t find anything online about it. I’ve narrowed it down to one line of code and it seems like any time I try to do anything with an array of vision signatures I get similar errors.
Here’s the code:
vision::signature Signatures[] =
{
Tracker1__DISK, Tracker2__DISK
};
static int Index = 0;
class Camera
{
public:
int num;
vision Vision = vision(PORT21, 70);
Vector3 Position; // position from origin
Vector3 Angle; // x = horizontal rotation y = vertical rotation
Vector3 Normal;
void CalculateCameraNormal()
{
Normal.x = cos(Angle.x) * cos(Angle.y);
Normal.y = cos(Angle.y);
Normal.z = sin(Angle.x) * sin(Angle.y);
}
Vector3 CalculateObjectNormal()
{
Vision.takeSnapshot(Signatures[num]); <---- This line
return Vector3();
}
Any help is appreciated and Thanks!