Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
Work with spring properties in material property for entity

Answered Work with spring properties in material property for entity

  • 13. února 2012 11:42
     
     

    Hi

    We want to add a spring property to link of a robot. when we add this property in following way:

    shape a = new shape();

    MaterialProperties b = new MaterialProperties();

    b.Advanced.Spring = new SpringProperties(500000,100,0);

    a.Material = b;

    The number of 500000 and 100 is arbitrary. But we run this a error occured with this text in Console:

    "System.NullRefrenceException: object refrence not set to an instance of an object"

    I don't know why this error occured? plz help me about this. I don't find an example in Professional MRDS book about this(spring Material Property).

    Also plz tell me about units of parameters of SpringProperties for example what is unit of Damper coefficient and Spring Coefficient?

Všechny reakce

  • 29. března 2012 1:20
    Vlastník
     
     

    Where does the exception occur?  At the use of b in b.Advance.Spring, or the use of a.Material?

    I can't find any indication of units in the documentation, but the RDS simulation environment uses PhysX (from nVidia, used to be called Ageia) physics engine. I imagine that these are passed through to that engine.  I would begin my search for units there.
    If I had to guess, the spring coefficient woud be would be
    in Newtons per meter and damper would be in Newtons per meter per second

  • 12. dubna 2012 18:47
    Moderátor
     
     Odpovědět
    I haven't seen a response on this thread for a while so I am closing it “Answered”. If you have another question, please open a new thread as this one will continue to appear "Answered" and may not get any attention.