ark engine math stuff