| 494 | } |
| 495 | |
| 496 | SkeletonPtr 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 | |
| 508 | SkeletonPtr createRigidChain() |
| 509 | { |