| 346 | } |
| 347 | |
| 348 | SkeletonPtr 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 | |
| 360 | SkeletonPtr createRigidChain() |
| 361 | { |