opensurgsim
Classes | Functions
DroppingBalls.cpp File Reference

Example of how to put together a very simple demo of balls colliding with each other. More...

#include <memory>
#include <boost/thread.hpp>
#include "SurgSim/Framework/Framework.h"
#include "SurgSim/Graphics/Graphics.h"
#include "SurgSim/Math/Math.h"
#include "SurgSim/Physics/Physics.h"
#include "Examples/DroppingBalls/AddRandomSphereBehavior.h"

Classes

class  PrintoutBehavior
 Simple behavior to show that the spheres are moving while we don't have graphics. More...
 

Functions

std::shared_ptr< SceneElementcreatePlane (const std::string &name)
 Creates a planar SceneElement with graphics, physics, and collision.
 
std::shared_ptr< SceneElementcreateEarth (const SurgSim::Framework::ApplicationData &data, const std::string &name)
 Creates a SceneElement of a rigid sphere with a graphic texture loaded from an image file.
 
int main (int argc, char *argv[])
 

Detailed Description

Example of how to put together a very simple demo of balls colliding with each other.

Discrete Collision Detection (dcd) is used to detect collisions between spheres.