Question: It seems that if a display object has a perspective projection applied to it, calling localToGlobal gives you the wrong coordinates. In the following code, I draw a rectangle, rotate it slightly about its X axis, then draw an oval inside it using coordinates derived from localToGlobal. It works fine, until I try to apply a perspective projection, then the coordinates are all wrong. Anyone know how to get around this problem?

```
var w:uint = 300, h:uint = 150;
var s:Sprite = new Sprite();
s.graphics.beginFill(0x000000);
s.graphics.drawRect(-w/2,0,w,h);
s.graphics.endFill();
s.x = 275; s.y = 200; s.z = 600;
s.rotationX = -45;
addChild(s);

var point00:Point = new Point(0,0);
var point0h:Point = new Point(0,h);
var midL:Point = new Point(-w/2,h/2);
var midR:Point = new Point(w/2,h/2);

/*var VP:PerspectiveProjection = new PerspectiveProjection();
VP.fieldOfView = 55;
var p:Point = new Point(275,100);
VP.projectionCenter = p;
s.transform.perspectiveProjection = VP;*/

var o:Shape = new Shape();
o.graphics.beginFill(0x00ff00);
o.graphics.drawEllipse(
  s.localToGlobal(midL).x,
  s.localToGlobal(point00).y,
  s.localToGlobal(midR).x - s.localToGlobal(midL).x,
  s.localToGlobal(point0h).y - s.localToGlobal(point00).y
);
addChild(o);

```

Answer: 
You need to download the Swift 1.2 version available in [this branch](https://github.com/realm/realm-cocoa/tree/swift-1.2).
Please Follow the instructions.

Create a bridging header,

example, 

1) Add a new Objective-C class to your xcode project.

2) Agree to have a bridging header created

3)Delete the Objective-C class

Add this in the bridging header:

```
#import "Realm/Realm.h"

```

Remove any Import Realm statements from your code, including from RLMSupport.swift
Now it should work. For example, I test with putting this in my ViewController.swift

```
import UIKit

class Person: RLMObject {
    dynamic var name = ""
    dynamic var birthdate = NSDate(timeIntervalSince1990: 1)
}

class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()

        let person = Person()
        person.name = "ANY_NAME"

        // Get the default Realm
        let realm = RLMRealm.defaultRealm()

        // Add to the Realm inside a transaction
        realm.beginWriteTransaction()
        realm.addObject(author)
        realm.commitWriteTransaction()

        // Print all Persons
        println(Person.allObjects())
    }
}

```

Output:

```
RLMArray <0x9a675890> (
[0] Person {
    name = ANY_NAME;
    birthdate = 1990-01-01 00:00:01 +0000;
}
)

```