I'm trying to type cast an MPoint to an MFloatPoint using the setCast method:
MStatus setCast(const MPoint &sourcePoint)
This is my code:
MPoint finalPos = blah + blah;//this checks out fine
stat = rayOrigin.setCast(finalPos);
returns: kFailure.
I also tried:
stat = rayOrigin.setCast(&finalPos);
stat = rayOrigin.setCast(*finalPos);
illegal misdirection.
But this works:
MPointArray finalPos;
finalPos[0] = blah + blah;//this checks out fine
stat = rayOrigin.setCast(finalPos[0]);
returns: kSuccess
But I don't see why I should have to use an array when it is not needed
Why gurus:)????