MCPcopy Create free account
hub / github.com/dartsim/dart / createSoftBody

Function createSoftBody

tutorials/tutorial_collisions/main.cpp:391–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391SkeletonPtr createSoftBody()
392{
393 SkeletonPtr soft = Skeleton::create("soft");
394
395 // Add a soft body
396 /*BodyNode* bn =*/addSoftBody<FreeJoint>(soft, "soft box", SOFT_BOX);
397
398 // Add a rigid collision geometry and inertia
399 // Lesson 2f
400
401 setAllColors(soft, dart::Color::Fuchsia());
402
403 return soft;
404}
405
406SkeletonPtr createHybridBody()
407{

Callers 1

mainFunction · 0.70

Calls 1

setAllColorsFunction · 0.70

Tested by

no test coverage detected