mirror of
https://github.com/nasa/trick.git
synced 2025-02-07 11:20:24 +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
25 lines
425 B
C++
25 lines
425 B
C++
|
|
/*
|
|
PURPOSE:
|
|
(Bouncing ball)
|
|
LIBRARY DEPENDENCY:
|
|
((BallDrawStuffObject.cpp))
|
|
*/
|
|
|
|
#ifndef ODEBALLDRAWSTUFFOBJECT_HH
|
|
#define ODEBALLDRAWSTUFFOBJECT_HH
|
|
|
|
#include <ode/common.h>
|
|
#include "ODE/DrawStuff/DrawStuffObject.hh"
|
|
|
|
class BallDrawStuffObject : public DrawStuffObject {
|
|
public:
|
|
dGeomID geom ;
|
|
|
|
BallDrawStuffObject() ;
|
|
int init(dGeomID in_geom) ;
|
|
virtual int draw() ;
|
|
} ;
|
|
|
|
#endif
|