<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tsubaki_t1</author_name>
  <author_url>https://blog.hatena.ne.jp/tsubaki_t1/</author_url>
  <blog_title>テラシュールブログ</blog_title>
  <blog_url>https://tsubakit1.hateblo.jp/</blog_url>
  <categories>
    <anon>2D</anon>
    <anon>3D</anon>
    <anon>Unity</anon>
    <anon>物理演算</anon>
    <anon>回転とか移動とか拡大縮小とか</anon>
  </categories>
  <description>今回は上から視点で、マウスのある方向にキャラクターを向けようと思います。 マウスの位置にキャラクターの向きを変える サバイバルシューターから学ぶ 地面からColliderを取っ払う 2Dの場合でも同じようにしてみる 2Dって画面だけで向きとれるんじゃね…？ マウスの位置にキャラクターの向きを変える 上から見下ろす感じの視点（トップビュー）でゲームをする場合、キャラクターの向きを変えるのは大体は右ジョイスティックもしくはマウスの位置です。 これは既にゲームの文脈として登録されており、普通に使われる操作です。古事記にもそう書いてあります。 特に「照準」をマウス（右手）で行い、移動はキーボードWAS…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsubakit1.hateblo.jp%2Fentry%2F2017%2F07%2F02%2F232453&quot; title=&quot;【Unity】キャラクターの向きをマウスのある方向に向ける（2D/3D) - テラシュールブログ&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/t/tsubaki_t1/20170702/20170702215521.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-07-02 23:24:53</published>
  <title>【Unity】キャラクターの向きをマウスのある方向に向ける（2D/3D)</title>
  <type>rich</type>
  <url>https://tsubakit1.hateblo.jp/entry/2017/07/02/232453</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
