<?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%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95%2F%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController</id>
		<title>Unity/3d/キャラクタ移動/前後回転 CharacterController - 変更履歴</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%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95%2F%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController"/>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;action=history"/>
		<updated>2026-04-24T08:46:42Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;diff=16340&amp;oldid=prev</id>
		<title>Admin: Admin がページ「Unity/3d/キャラクタ移動/前後回転」を「Unity/3d/キャラクタ移動/前後回転 CharacterController」に移動しました</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;diff=16340&amp;oldid=prev"/>
				<updated>2022-12-10T23:23:52Z</updated>
		
		<summary type="html">&lt;p&gt;Admin がページ「&lt;a href=&quot;/index.php/Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2&quot; title=&quot;Unity/3d/キャラクタ移動/前後回転&quot;&gt;Unity/3d/キャラクタ移動/前後回転&lt;/a&gt;」を「&lt;a href=&quot;/index.php/Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&quot; title=&quot;Unity/3d/キャラクタ移動/前後回転 CharacterController&quot;&gt;Unity/3d/キャラクタ移動/前後回転 CharacterController&lt;/a&gt;」に移動しました&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←前の版&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2022年12月10日 (土) 23:23時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;diff=16330&amp;oldid=prev</id>
		<title>Admin: /* 前後回転サンプル */</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;diff=16330&amp;oldid=prev"/>
				<updated>2022-12-10T03:54:53Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;前後回転サンプル&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←前の版&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2022年12月10日 (土) 03:54時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; if (!m_animator) { gameObject.GetComponent&amp;lt;Animator&amp;gt;(); }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; if (!m_animator) { gameObject.GetComponent&amp;lt;Animator&amp;gt;(); }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; if (!m_rigidBody) { gameObject.GetComponent&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Animator&lt;/del&gt;&amp;gt;(); }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; if (!m_rigidBody) { gameObject.GetComponent&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Rigidbody&lt;/ins&gt;&amp;gt;(); }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;diff=16296&amp;oldid=prev</id>
		<title>2022年12月7日 (水) 15:17にAdminによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;diff=16296&amp;oldid=prev"/>
				<updated>2022-12-07T15:17:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←前の版&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2022年12月7日 (水) 15:17時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行16:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; [SerializeField] private Rigidbody m_rigidBody = null;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; [SerializeField] private Rigidbody m_rigidBody = null;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; private readonly float m_runScale = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;2f&lt;/del&gt;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; private readonly float m_runScale = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;3f&lt;/ins&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; private Vector3 m_currentDirection = Vector3.zero;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; private Vector3 m_currentDirection = Vector3.zero;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行110:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行110:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float horizontal = Input.GetAxis(&amp;quot;Horizontal&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float horizontal = Input.GetAxis(&amp;quot;Horizontal&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float walkSpeed = 5f;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float currentSpeed = (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) ? &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;m_moveSpeed * m_runScale * 2 &lt;/ins&gt;: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;m_moveSpeed * 2&lt;/ins&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float runSpeed = 14f;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float currentSpeed = (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) ? &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;runSpeed &lt;/del&gt;: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;walkSpeed&lt;/del&gt;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; Vector3 forwardsMovement = transform.forward * vertical;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; Vector3 forwardsMovement = transform.forward * vertical;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; GetComponent&amp;lt;CharacterController&amp;gt;().Move(Time.deltaTime * currentSpeed * forwardsMovement);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; GetComponent&amp;lt;CharacterController&amp;gt;().Move(Time.deltaTime * currentSpeed * forwardsMovement);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;rotateSpeed &lt;/del&gt;= &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;2f&lt;/del&gt;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;rotete &lt;/ins&gt;= &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;m_turnSpeed / 100 * horizontal&lt;/ins&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;float &lt;/del&gt;rotete = &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;rotateSpeed &lt;/del&gt;* horizontal;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;if (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift))&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;/ins&gt;rotete = &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;m_turnSpeed / 100 * 2 &lt;/ins&gt;* horizontal;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; GetComponent&amp;lt;CharacterController&amp;gt;().transform.Rotate(new Vector3(0f, rotete, 0f));&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; GetComponent&amp;lt;CharacterController&amp;gt;().transform.Rotate(new Vector3(0f, rotete, 0f));&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; if (m_animator != null)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; if (m_animator != null)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;diff=16293&amp;oldid=prev</id>
		<title>2022年12月7日 (水) 14:46にAdminによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;diff=16293&amp;oldid=prev"/>
				<updated>2022-12-07T14:46:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←前の版&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2022年12月7日 (水) 14:46時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行109:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;行109:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float vertical = Input.GetAxis(&amp;quot;Vertical&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float vertical = Input.GetAxis(&amp;quot;Vertical&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float horizontal = Input.GetAxis(&amp;quot;Horizontal&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float horizontal = Input.GetAxis(&amp;quot;Horizontal&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; vertical *= m_runScale;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float walkSpeed = 5f;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; float walkSpeed = 5f;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;diff=16292&amp;oldid=prev</id>
		<title>Admin: ページの作成:「==準備== #unity標準のCharacterControllerを使うのでAddComponentしておく。 #オブジェクト内にカメラを設置しておく。 ==前後回転サンプ...」</title>
		<link rel="alternate" type="text/html" href="https://wiki.nonip.net/index.php?title=Unity/3d/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF%E7%A7%BB%E5%8B%95/%E5%89%8D%E5%BE%8C%E5%9B%9E%E8%BB%A2_CharacterController&amp;diff=16292&amp;oldid=prev"/>
				<updated>2022-12-07T14:43:16Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「==準備== #unity標準のCharacterControllerを使うのでAddComponentしておく。 #オブジェクト内にカメラを設置しておく。 ==前後回転サンプ...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==準備==&lt;br /&gt;
#unity標準のCharacterControllerを使うのでAddComponentしておく。&lt;br /&gt;
#オブジェクト内にカメラを設置しておく。&lt;br /&gt;
==前後回転サンプル==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using UnityEngine;&lt;br /&gt;
&lt;br /&gt;
public class CharacterControl : MonoBehaviour&lt;br /&gt;
{&lt;br /&gt;
    [SerializeField] private float m_moveSpeed = 2;&lt;br /&gt;
    [SerializeField] private float m_turnSpeed = 200;&lt;br /&gt;
    [SerializeField] private float m_jumpForce = 4;&lt;br /&gt;
&lt;br /&gt;
    [SerializeField] private Animator m_animator = null;&lt;br /&gt;
    [SerializeField] private Rigidbody m_rigidBody = null;&lt;br /&gt;
&lt;br /&gt;
    private readonly float m_runScale = 2f;&lt;br /&gt;
&lt;br /&gt;
    private Vector3 m_currentDirection = Vector3.zero;&lt;br /&gt;
&lt;br /&gt;
    private bool m_jumpInput = false;&lt;br /&gt;
&lt;br /&gt;
    private bool m_isGrounded;&lt;br /&gt;
&lt;br /&gt;
    private List&amp;lt;Collider&amp;gt; m_collisions = new List&amp;lt;Collider&amp;gt;();&lt;br /&gt;
&lt;br /&gt;
    private void Awake()&lt;br /&gt;
    {&lt;br /&gt;
        if (!m_animator) { gameObject.GetComponent&amp;lt;Animator&amp;gt;(); }&lt;br /&gt;
        if (!m_rigidBody) { gameObject.GetComponent&amp;lt;Animator&amp;gt;(); }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void OnCollisionEnter(Collision collision)&lt;br /&gt;
    {&lt;br /&gt;
        ContactPoint[] contactPoints = collision.contacts;&lt;br /&gt;
        for (int i = 0; i &amp;lt; contactPoints.Length; i++)&lt;br /&gt;
        {&lt;br /&gt;
            if (Vector3.Dot(contactPoints[i].normal, Vector3.up) &amp;gt; 0.5f)&lt;br /&gt;
            {&lt;br /&gt;
                if (!m_collisions.Contains(collision.collider))&lt;br /&gt;
                {&lt;br /&gt;
                    m_collisions.Add(collision.collider);&lt;br /&gt;
                }&lt;br /&gt;
                m_isGrounded = true;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void OnCollisionStay(Collision collision)&lt;br /&gt;
    {&lt;br /&gt;
        ContactPoint[] contactPoints = collision.contacts;&lt;br /&gt;
        bool validSurfaceNormal = false;&lt;br /&gt;
        for (int i = 0; i &amp;lt; contactPoints.Length; i++)&lt;br /&gt;
        {&lt;br /&gt;
            if (Vector3.Dot(contactPoints[i].normal, Vector3.up) &amp;gt; 0.5f)&lt;br /&gt;
            {&lt;br /&gt;
                validSurfaceNormal = true; break;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        if (validSurfaceNormal)&lt;br /&gt;
        {&lt;br /&gt;
            m_isGrounded = true;&lt;br /&gt;
            if (!m_collisions.Contains(collision.collider))&lt;br /&gt;
            {&lt;br /&gt;
                m_collisions.Add(collision.collider);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
            if (m_collisions.Contains(collision.collider))&lt;br /&gt;
            {&lt;br /&gt;
                m_collisions.Remove(collision.collider);&lt;br /&gt;
            }&lt;br /&gt;
            if (m_collisions.Count == 0) { m_isGrounded = false; }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void OnCollisionExit(Collision collision)&lt;br /&gt;
    {&lt;br /&gt;
        if (m_collisions.Contains(collision.collider))&lt;br /&gt;
        {&lt;br /&gt;
            m_collisions.Remove(collision.collider);&lt;br /&gt;
        }&lt;br /&gt;
        if (m_collisions.Count == 0) { m_isGrounded = false; }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void Update()&lt;br /&gt;
    {&lt;br /&gt;
        if (!m_jumpInput &amp;amp;&amp;amp; Input.GetKey(KeyCode.Space))&lt;br /&gt;
        {&lt;br /&gt;
            m_jumpInput = true;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void FixedUpdate()&lt;br /&gt;
    {&lt;br /&gt;
        if (m_animator != null)&lt;br /&gt;
        {&lt;br /&gt;
            m_animator.SetBool(&amp;quot;Grounded&amp;quot;, m_isGrounded);&lt;br /&gt;
        }&lt;br /&gt;
        DirectUpdate();&lt;br /&gt;
        m_jumpInput = false;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void DirectUpdate()&lt;br /&gt;
    {&lt;br /&gt;
        float vertical = Input.GetAxis(&amp;quot;Vertical&amp;quot;);&lt;br /&gt;
        float horizontal = Input.GetAxis(&amp;quot;Horizontal&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        vertical *= m_runScale;&lt;br /&gt;
&lt;br /&gt;
        float walkSpeed = 5f;&lt;br /&gt;
        float runSpeed = 14f;&lt;br /&gt;
        float currentSpeed = (Input.GetKey(KeyCode.LeftShift) || Input.GetKey(KeyCode.RightShift)) ? runSpeed : walkSpeed;&lt;br /&gt;
        Vector3 forwardsMovement = transform.forward * vertical;&lt;br /&gt;
        GetComponent&amp;lt;CharacterController&amp;gt;().Move(Time.deltaTime * currentSpeed * forwardsMovement);&lt;br /&gt;
        float rotateSpeed = 2f;&lt;br /&gt;
        float rotete = rotateSpeed * horizontal;&lt;br /&gt;
        GetComponent&amp;lt;CharacterController&amp;gt;().transform.Rotate(new Vector3(0f, rotete, 0f));&lt;br /&gt;
        if (m_animator != null)&lt;br /&gt;
        {&lt;br /&gt;
            m_animator.SetFloat(&amp;quot;MoveSpeed&amp;quot;, 1);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>