<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toburau</author_name>
  <author_url>https://blog.hatena.ne.jp/toburau/</author_url>
  <blog_title>ゲームが作れるようになるまでがんばる日記</blog_title>
  <blog_url>https://toburau.hatenablog.jp/</blog_url>
  <categories>
    <anon>プロジェクト15</anon>
    <anon>Unity</anon>
  </categories>
  <description>Cubeをラインのように描画するようにした。 まずCubeを細長くするためにXとZのスケールを極端に小さくし、Yのスケールを線分の長さとする。 始点から終点へ向くようにCubeを回転させる。向きはQuaternion.FromToRotation()を使って求めた。 回転位置はオブジェクトの中心となっているので、両端が始点、終点となるように線分の半分の長さだけ移動させる。 これでCubeをラインのように描画できた。 Vector3 start; // 始点 Vector3 end; // 終点 GameObject cube = GameObject.CreatePrimitive(Primi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20170429%2F1493490107&quot; title=&quot;Cubeでライン その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>2017-04-29 03:21:47</published>
  <title>Cubeでライン その2</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/20170429/1493490107</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
