Hi once again
I am trying to see if a cube exists in an array of cubes and although I believe there should be a match, it does not find one. Here is the code snippet, could anyone offer any help please?
<code>
private function aCuboid():void
{
aCubeArray = new Array();
aCubeArray = BasicCube._pointsArray;
aCube = new Cube();
aCube.x = _sent.x
aCube.y = _sent.y -17;
aCube.z = _sent.z +90;
//trace(aCube); //$: x:180 y:-20 z:0
findInArray(aCube,aCubeArray);
}
private function findInArray(input,Array)
{
//trace(input,Array);
for (var i=0; i<Array.length; i++)
{
if(Array* == input)
{
trace("Found");
}
else
{
trace("Not Found");
}
}
}
</code>