Working on a camera object, using the glm vector/matrix library. The compiler 
says Front is an undeclared identifier, I can't figure out why:
    
    
    type Camera* = ref object
        Position*,Front*,Up*,Right*,WorldUp*:Vec3f
        Yaw*,Pitch*,MovementSpeed*,MouseSensitivity*,Zoom*:float32
    
    method UpdateCameraVectors(this: Camera) {.base.} =
        
        Front.x = cos(radians(Yaw)) * cos(radians(Pitch))
        Front.y = sin(radians(Pitch))
        Front.z = sin(radians(Yaw)) * cos(radians(Pitch))
        Front = normalize(Front);
    

Reply via email to