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

Function createBall

tutorials/tutorial_collisions/main.cpp:348–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348SkeletonPtr createBall()
349{
350 SkeletonPtr ball = Skeleton::create("rigid_ball");
351
352 // Give the ball a body
353 addRigidBody<FreeJoint>(ball, "rigid ball", Shape::ELLIPSOID);
354
355 setAllColors(ball, dart::Color::Red());
356
357 return ball;
358}
359
360SkeletonPtr createRigidChain()
361{

Callers 1

mainFunction · 0.70

Calls 1

setAllColorsFunction · 0.70

Tested by

no test coverage detected