<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KibunLog</author_name>
  <author_url>https://blog.hatena.ne.jp/KibunLog/</author_url>
  <blog_title>キブンログ</blog_title>
  <blog_url>https://kibunlog.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>プレイヤーが移動方向を向くようにする＆カメラも少しそっち向くようにする。 単純に移動方向と同じ向きに回転すればいいんじゃね！？と思ったので移動に使ったキーボード入力の値x,yをそのままtransform.Rotateにぶち込みます。 transform.Rotate(0, x*rotSpeed, y*rotSpeed); rotSpeedは回転する速度を管理する変数。 これで回転はするんですが、一回回転したら戻らないので移動し続けるとわけわかんない方向向きながら動き回ることになります。 最初の方向に戻すのどうしたもん調べたら、Quaternion.Slerpってめっちゃ便利なメソッドあるらしい</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkibunlog.hatenablog.com%2Fentry%2F2016%2F10%2F01%2F034454&quot; title=&quot;プレイヤーの移動(2) - キブンログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-10-01 03:44:54</published>
  <title>プレイヤーの移動(2)</title>
  <type>rich</type>
  <url>https://kibunlog.hatenablog.com/entry/2016/10/01/034454</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
