Fox 2 sample code compilation error

Tried to compile Fox 2 sample code. I got the following error message with the GameController.Swift:

Error: Function produces expected type 'sims_float3' (aka 'float3'); did you mean to call it with "{}"?

//

let q = simd_mul(

simd_quaternion(GameController.CameraOrientationSensitivity * cameraDirection.x, characterWorldUp!),

simd_quaternion(GameController.CameraOrientationSensitivity * cameraDirection.y, transformNode.simdWorldRight)

)


//

self.lastActiveCameraFrontDirection = originalAxisDirection


//

let referenceFrontDirection =

strongSelf.activeCamera == node ? strongSelf.lastActiveCameraFrontDirection : activeCamera.presentation.simdWorldFront


//

if activeCamera != nil {

self.lastActiveCameraFrontDirection = (activeCamera?.presentation.simdWorldFront)!

}


Error: Function 'originalAxisDirection' was used as a property; add () to call it


let symetricAxisDirection = simd_make_float3(-originalAxisDirection.x, originalAxisDirection.y, -originalAxisDirection.z)

First error asks you to change to :

self.lastActiveCameraFrontDirection = originalAxisDirection()


Can you show more of the context where other error occurs ?

What version of Xcode are you using? Building the sample code (Version 1.1, 2017-08-18) with beta 6 (9M214v), I cannot find any compile-time errors as you describe.


The sample code does not work as expected in the simulator on my old MacBook, but that may be another issue.

Fox 2 sample code compilation error
 
 
Q