Example #1
0
        public IntPtr AddMeshCollider(PxMeshCollider mesh)
        {
            IntPtr meshPtr = PhysXDll.AddMeshCollider(this.scenePtr, mesh.ColliderData, mesh.ColliderData.vertices, mesh.ColliderData.triangles);

            this.Colliders.Add(meshPtr, mesh);
            return(meshPtr);
        }