private void InvokeUserMeshCollisionCollide(Newton.NewtonUserMeshCollisionCollideDesc pCollideDescData) { UserMeshCollisionCollideDesc aCollideDescData = new UserMeshCollisionCollideDesc(pCollideDescData); //aCollideDescData.m_BoxP0 = new NewtonVector4(pCollideDescData.m_BoxP0).ToDirectX(); //aCollideDescData.m_BoxP1 = new NewtonVector4(pCollideDescData.m_BoxP1).ToDirectX(); //aCollideDescData.m_FaceCount = pCollideDescData.m_FaceCount; //aCollideDescData.m_FaceIndexCount = pCollideDescData.m_FaceIndexCount; //aCollideDescData.m_FaceVertexIndex = pCollideDescData.m_FaceVertexIndex; //aCollideDescData.m_ObjBody = (CBody)CHashTables.Body[pCollideDescData.m_ObjBody]; //aCollideDescData.m_PolySoupBody = (CBody)CHashTables.Body[pCollideDescData.m_PolySoupBody]; //aCollideDescData.m_UserAttribute = pCollideDescData.m_UserAttribute; //aCollideDescData.m_UserData = pCollideDescData.m_UserData; //aCollideDescData.m_Vertex = pCollideDescData.m_Vertex; //aCollideDescData.m_VertexStrideInBytes = pCollideDescData.m_VertexStrideInBytes; OnUserMeshCollisionCollide( new CUserMeshCollisionCollideEventArgs(aCollideDescData)); }
public CUserMeshCollisionCollideEventArgs(UserMeshCollisionCollideDesc pCollideDescData) { m_CollideDescData = pCollideDescData; }