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

Function createBall

tutorials/tutorial_collisions_finished/main.cpp:496–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496SkeletonPtr createBall()
497{
498 SkeletonPtr ball = Skeleton::create("rigid_ball");
499
500 // Give the ball a body
501 addRigidBody<FreeJoint>(ball, "rigid ball", Shape::ELLIPSOID);
502
503 setAllColors(ball, dart::Color::Red());
504
505 return ball;
506}
507
508SkeletonPtr createRigidChain()
509{

Callers 1

mainFunction · 0.70

Calls 1

setAllColorsFunction · 0.70

Tested by

no test coverage detected