お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseSphere のコリジョンに、平らなポリゴンの法線の代わりに、補間された法線を使用します
これにより Sphere が平らな平面を転がる際の凸凹をスムージングします。 欠点は深さのある角を転がる際に異常な動作をする場合があり、Sphere がある方向に引っ張られているように見えます。
transform.collider.smoothSphereCollisions = true;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { transform.collider.smoothSphereCollisions = true; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: transform.collider.smoothSphereCollisions = true