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); }
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); }