Skip to content

Commit

Permalink
'globalToLocal' fix for 3D objects (from Starling)
Browse files Browse the repository at this point in the history
  • Loading branch information
racarone committed Dec 5, 2015
1 parent cecd621 commit 52a2bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparrow/src/Classes/SPDisplayObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ - (SPPoint *)globalToLocal:(SPPoint *)globalPoint
if (_is3D)
{
SPPoint3D *localVector = [self globalToLocal3D:globalPoint];
return [localVector intersectWithXYPlane:self.stage.cameraPosition];
return [localVector intersectWithXYPlane:[self.stage cameraPositionInSpace:self]];
}
else
{
Expand Down

0 comments on commit 52a2bbc

Please sign in to comment.