<?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>スクリプト</anon>
    <anon>Unity</anon>
  </categories>
  <description>目標位置へ等速で動かすコードです。目標時間で最終目的地に到着するような感じです。下のgifだと１秒で目標地点まで到着します。 Unityで座標を等速直線的に動かすやつ。コメントアウト解除するとカーブエディタで他の移動パターンも作れる 解説 まず、「指定時間で移動する」為には、開始時間を0、終了時間を1として正規化するのが楽です。なので、そのように調整します。 まず処理の開始時間(startTime)を記録します。 startTime = Time.timeSinceLevelLoad; 後は実際の経過時間(diff)を求めて、予定時間（time)で割れば時間に対する進行率が出ます。 var d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftsubakit1.hateblo.jp%2Fentry%2F2015%2F02%2F20%2F235021&quot; title=&quot;Unityで対象のポイントへ等速で動かす - テラシュールブログ&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>http://cdn-ak.f.st-hatena.com/images/fotolife/t/tsubaki_t1/20150220/20150220233656.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-02-20 23:50:21</published>
  <title>Unityで対象のポイントへ等速で動かす</title>
  <type>rich</type>
  <url>https://tsubakit1.hateblo.jp/entry/2015/02/20/235021</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
