#include <simgear/math/point3d.hxx>
#include <simgear/props/props.hxx>
+#include <simgear/structure/ssgSharedPtr.hxx>
// Don't pull in the headers, since we don't need them here.
SGModelPlacement ();
virtual ~SGModelPlacement ();
- virtual void SGModelPlacement::init( ssgBranch * model );
- /* virtual void init( const string &fg_root,
- const string &path,
- SGPropertyNode *prop_root,
- double sim_time_sec, int dummy ); */
- virtual void update( const Point3D scenery_center );
+ virtual void init( ssgBranch * model );
+
+ virtual void update();
virtual ssgEntity * getSceneGraph () { return (ssgEntity *)_selector; }
virtual void setOrientation (double roll_deg, double pitch_deg,
double heading_deg);
- // Addition by Diarmuid Tyson for Multiplayer Support
- // Allows multiplayer to get players position transform
- virtual const sgVec4 *get_POS() { return POS; }
-
ssgPlacementTransform * getTransform(void)
{ return _position; }
double _pitch_deg;
double _heading_deg;
- ssgSelector * _selector;
-// ssgTransform * _position;
- ssgPlacementTransform * _position;
+ ssgSharedPtr<ssgSelector> _selector;
+ ssgSharedPtr<ssgPlacementTransform> _position;
// Location
SGLocation * _location;
-
-
- // Addition by Diarmuid Tyson for Multiplayer Support
- // Moved from update method
- // POS for transformation Matrix
- sgMat4 POS;
-
};
#endif // _SG_PLACEMENT_HXX