Contact between two objects

51 views
Skip to first unread message

Yaqing Wang

unread,
Apr 11, 2024, 9:21:06 AM4/11/24
to ProjectChrono
Hi,

I wonder if Chrono has a function to let me get the contact information of two specific objects. Like there are three objects A, B, and C, and they contact each other. I want to know the contact force, position, and normal direction to the contact surface of the collision between A and B only. If more, relative velocity and friction.

I am using "ChBody->GetContactForce()" but it seems to give the sum of all contact forces.

Thanks,

Radu Serban

unread,
Apr 11, 2024, 9:28:30 AM4/11/24
to ProjectChrono

You can use callback mechanisms to intercept this type of information and process it however you want.  Look at demo_MBS_callbackSMC and demo_MBS_callbackNSC. Note that, depending on the contact formulation, some information may not be available.

 

--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/010b05bb-2b53-47c3-9788-b118c457d0c4n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages