Reciprocating engine with swashplate mechanism