Capsule parameters

47 views
Skip to first unread message

Salavat Mukhamedzhanov

unread,
Apr 9, 2023, 11:51:47 AM4/9/23
to ProjectChrono
Hi,

I am working on Project Chrono to Unity integration. I can't clearly understand  how do parameters affect the resulting shape of the capsule. Could you provide a schematic diagram that demonstrates the roles of the radius and hlen parameters in the AddCapsule function?

For example, this how it works in Unity:
A standard Capsule Collider

Thank you!

Salavat Mukhamedzhanov

unread,
Apr 9, 2023, 11:55:25 AM4/9/23
to ProjectChrono

Radu Serban

unread,
Apr 10, 2023, 4:47:52 AM4/10/23
to ProjectChrono

Salavat,

 

The radius is the same as in your schematic.  The quantity hlen represents half of the length of the cylindrical portion of the capsule. In other words,  hlen = Height/2 – Radius

 

--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/ae8b8e5d-32f9-487d-95b4-baa0ead528a9n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages