Update Motion.hx

Errors with recent build. Needed to have set/get fields set in the typedef.
Merge pull request #637 from VictorGrunn/dev

Update Motion.hx