Quantcast
Channel: C#タグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 9747

【Unity】物体の回転を止める方法

$
0
0
void Start () // 最初に、衝突しても回転させなくしておく
    {
        rbody = this.GetComponent<Rigidbody>();
        rbody.constraints = RigidbodyConstraints.FreezeRotation;
    }


Viewing all articles
Browse latest Browse all 9747

Trending Articles