mirror of
https://github.com/nasa/trick.git
synced 2025-02-14 14:32:01 +00:00
Took the ODE bouncing ball tutorial sim and interfaced it within Trick. Created classes to handle interfacing with ODE and the DrawStuff graphics that comes with ODE. Created classes to contain the ball and the drawstuff graphics for the ball. refs #172
28 lines
306 B
C++
28 lines
306 B
C++
|
|
/*
|
|
PURPOSE:
|
|
(Bouncing ball)
|
|
LIBRARY DEPENDENCY:
|
|
((Ball.cpp))
|
|
*/
|
|
|
|
#ifndef ODEBALL_HH
|
|
#define ODEBALL_HH
|
|
|
|
#include <ode/common.h>
|
|
#include <ode/src/objects.h>
|
|
|
|
class Ball {
|
|
public:
|
|
|
|
dBodyID body;
|
|
dGeomID geom;
|
|
dMass m;
|
|
|
|
Ball() ;
|
|
int init() ;
|
|
|
|
} ;
|
|
|
|
#endif
|