#60 Bug in Ode.Net Missing a field in SurfaceParamaters

general
closed
nobody
general (12)
5
2012-09-14
2008-09-07
Mark T
No

[StructLayout(LayoutKind.Sequential)]
public struct SurfaceParameters
{
public ContactFlags mode;
public dReal mu;
public dReal mu2;
public dReal bounce;
public dReal bounce_vel;
public dReal soft_erp;
public dReal soft_cfm;
public dReal motion1;
public dReal motion2;
public dReal motionN;
public dReal slip1;
public dReal slip2;
}

There is a missing field in the structrure above. The latest Native ODE code has a float motionN. This is causing issues. The file : /contrib/Ode.net/Ode.cs needs to have the line added:

public dReal motionN;

Also, I think it would help if all methods had their matching Safe methods. I've attached the file as I believe it should look.

Discussion

  • Mark T
    Mark T
    2008-09-07

    File which has the missing dReal motionN and has #else defined for safe code.

     
    Attachments