<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hildsoft</author_name>
  <author_url>https://blog.hatena.ne.jp/hildsoft/</author_url>
  <blog_title>hildsoftのコード置き場</blog_title>
  <blog_url>https://code.hildsoft.com/</blog_url>
  <categories>
    <anon>Unity</anon>
    <anon>C#</anon>
    <anon>プログラム</anon>
  </categories>
  <description>Quaternionはさっぱりわからないという人は一度こちらを見てください。 code.hildsoft.com Unityで使うQuaternionのサンプルコード(LookRotation) 対象となるオブジェクトを向くには、LookRotationを使ってどのくらい回転させればいいのかを求めて、 得られたクォータニオンを使用して回転させると楽です。 このように黒いキューブの方を向くなど、カメラの向き変更などでよく使います。 Quaternion LookRotation(Vector3 forward) +Z軸を、指定の方向に向けたい時に必要な回転操作が欲しい時に使用します。 +Z方向は…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcode.hildsoft.com%2Fentry%2F2017%2F07%2F06%2F060658&quot; title=&quot;Unityで対象となるオブジェクトを向くように回転させたい(Quaternion.LookRotation) - hildsoftのコード置き場&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>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hildsoft/20170706/20170706031756.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-07-06 06:06:58</published>
  <title>Unityで対象となるオブジェクトを向くように回転させたい(Quaternion.LookRotation)</title>
  <type>rich</type>
  <url>https://code.hildsoft.com/entry/2017/07/06/060658</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
