Fixed deltaTime, initialized it in the cpp class