<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Unity%2F3d%2F%E4%B8%80%E5%AE%9A%E7%A7%BB%E5%8B%95</id>
		<title>Unity/3d/一定移動 - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.nonip.net/index.php?action=history&amp;feed=atom&amp;title=Unity%2F3d%2F%E4%B8%80%E5%AE%9A%E7%A7%BB%E5%8B%95"/>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/3d/%E4%B8%80%E5%AE%9A%E7%A7%BB%E5%8B%95&amp;action=history"/>
		<updated>2026-04-18T20:46:50Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/3d/%E4%B8%80%E5%AE%9A%E7%A7%BB%E5%8B%95&amp;diff=14455&amp;oldid=prev</id>
		<title>Admin: ページの作成:「==サンプル== 一定速度で移動 &lt;pre&gt; using System.Collections; using UnityEngine;  public class CubeMoveScene : MonoBehaviour {     // 移動速度     float spee...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/3d/%E4%B8%80%E5%AE%9A%E7%A7%BB%E5%8B%95&amp;diff=14455&amp;oldid=prev"/>
				<updated>2021-12-01T06:57:49Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「==サンプル== 一定速度で移動 &amp;lt;pre&amp;gt; using System.Collections; using UnityEngine;  public class CubeMoveScene : MonoBehaviour {     // 移動速度     float spee...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==サンプル==&lt;br /&gt;
一定速度で移動&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using UnityEngine;&lt;br /&gt;
&lt;br /&gt;
public class CubeMoveScene : MonoBehaviour&lt;br /&gt;
{&lt;br /&gt;
    // 移動速度&lt;br /&gt;
    float speed = 5f;&lt;br /&gt;
    // 自分&lt;br /&gt;
    public GameObject selfObj;&lt;br /&gt;
    // 標的&lt;br /&gt;
    public GameObject targetObj;&lt;br /&gt;
&lt;br /&gt;
    void Start()&lt;br /&gt;
    {&lt;br /&gt;
        StartCoroutine(Throw());&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    IEnumerator Throw()&lt;br /&gt;
    {&lt;br /&gt;
        while (true)&lt;br /&gt;
        {&lt;br /&gt;
            selfObj.transform.position = Vector3.MoveTowards(selfObj.transform.position, targetObj.transform.position, speed * Time.deltaTime);&lt;br /&gt;
            yield return null;&lt;br /&gt;
&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
参考：https://robamemo.hatenablog.com/entry/2018/02/14/112718&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>