title: Moving an object with a rotation
body: <p>I'm trying to make a freecam sort of tool for a rather obscure game. I'm trying to figure out how to move the XY position of the freecam based on the car's rotation value, but I'm struggling to do so. I've tried using <a href="https://stackoverflow.com/questions/5192983/calculating-x-y-movement-based-on-rotation-angle">Calculating X Y movement based on rotation angle?</a> and modifying it a bit, but it doesn't work as intended. The game's rotation uses a float that ranges from -1 to 1, -1 being 0 degrees and 1 being 360 degrees.</p>
  <p>Putting rot at -1 corresponds to X+
  Putting rot at 0 corresponds to Z+
  Putting rot at 1 corresponds to X-</p>
  <p>Here's my cheat engine code:</p>
  <pre><code>speed = 10000
  local yaw = math.rad((180*(getAddressList().getMemoryRecordByDescription('rot').Value))+180)
  local px = getAddressList().getMemoryRecordByDescription('playerx').Value
  local py = getAddressList().getMemoryRecordByDescription('playery').Value
  local pz = getAddressList().getMemoryRecordByDescription('playerz').Value
  local siny = math.sin(yaw) -- Sine of Horizontal (Yaw)
  local cosy = math.cos(yaw) -- Cosine of Horizontal (Yaw)
  getAddressList().getMemoryRecordByDescription('playerx').Value = ((getAddressList().getMemoryRecordByDescription('playerx').Value)+(cosy*speed))
  getAddressList().getMemoryRecordByDescription('playerz').Value = ((getAddressList().getMemoryRecordByDescription('playerz').Value)+(siny*speed))
  print(yaw)
  </code></pre>