Function: SetMaterialSurface() is missed in ChBody

37 views
Skip to first unread message

Chao Zhang

unread,
Dec 6, 2022, 8:04:10 AM12/6/22
to ProjectChrono
Hi, everyone!
I'm using the newest version of Chrono, now I want to give each body in the system a ChMaterialSurface material. But I found that Function: SetMaterialSurface() is missed in ChBody.

Radu Serban

unread,
Dec 6, 2022, 8:58:29 AM12/6/22
to ProjectChrono

This is a change I made quite a while ago.  Contact materials are now associated with collision shapes (so that you can have multiple different materials in the collision material of any given body).  See https://github.com/projectchrono/chrono/blob/main/CHANGELOG.md#changed-collision-shapes-and-contact-materials (by the way, the CHANGELOG file is a good resource for all major API changes in Chrono). And look in the various demos distributed with Chrono. 

 

--Radu

--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/c6c57c08-d0af-4c4f-a27a-57a3a9c9de49n%40googlegroups.com.

Chao Zhang

unread,
Dec 8, 2022, 6:28:24 AM12/8/22
to ProjectChrono
Thanks, the problem has been solved under your association. The problem is in a very old version of Chrono and I will check the CHANGELOG to figure out the newest released one.

Chao

Reply all
Reply to author
Forward
0 new messages