Warning: Declaration of action_plugin_linebreak::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/linebreak/action.php on line 41

Warning: Declaration of action_plugin_markdownextra::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/markdownextra/action.php on line 16

Warning: Declaration of action_plugin_syntaxhighlighter3_action::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/syntaxhighlighter3/action/action.php on line 28
081 rigidbodyを含むGameObjectを一時停止する方法 [stepism@UE4メモ]

ユーザ用ツール

サイト用ツール


wiki:unity:tips:081

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
wiki:unity:tips:081 [2015/01/06 14:16]
step
— (現在)
ライン 1: ライン 1:
-====== 081 rigidbodyを含むGameObjectを一時停止する方法 ====== 
-  
-===== 概要 ===== 
-ポーズメニューを開く時など、Rididbodyが適用されたオブジェクトを一時停止するには 
-加速や重力を無効にする必要があります。 
- 
-==== ソースコード ==== 
-<code csharp> 
-void FixedUpdate() 
-{ 
-    gameObject.rigidbody.velocity = Vector3.zero;​ 
-    gameObject.rigidbody.angularVelocity = Vector3.zero;​ 
-    gameObject.rigidbody.useGravity = false; 
-} 
-</​code>​ 
  
wiki/unity/tips/081.1420553797.txt.gz · 最終更新: 2015/01/06 14:16 by step