コード例 #1
0
        public PxBoxCollider(PhysicsScene scene, BoxColliderData data, bool isDynamic, object userData = null) : base(scene, isDynamic, userData)
        {
            NLog.Log.Assert(data.IsValid);
            this.ColliderData = data;

            this.position = data.position;
            this.rotation = data.rotation;
            this.ptr      = scene.AddBoxCollider(this);
        }
コード例 #2
0
 public PxBoxCollider(PhysicsScene scene, BoxColliderData data, bool isDynamic, string name, object userData = null) :
     this(scene, data, isDynamic, userData)
 {
     this.Name = name;
 }
コード例 #3
0
ファイル: PhysXDll.cs プロジェクト: ZtyWolfRain/PhysXCSharp
 public static extern IntPtr AddBoxCollider(IntPtr scene, BoxColliderData boxData, bool isDynamic);