Quantcast
Channel: かずきのBlog@hatena
Viewing all articles
Browse latest Browse all 1387

Unityで動いてる物体を完全に止める方法

$
0
0

メモ。

targetGameObjectの動きを止める場合。

targetGameObject.rigidbody.velocity = Vector3.zero;
targetGameObject.rigidbody.angularVelocity = Vector3.zero;

Viewing all articles
Browse latest Browse all 1387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>