Panda3D
|
00001 // Filename: physxWheel.h 00002 // Created by: enn0x (23Mar10) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PHYSXWHEEL_H 00016 #define PHYSXWHEEL_H 00017 00018 #include "pandabase.h" 00019 #include "nodePath.h" 00020 00021 #include "physxObject.h" 00022 #include "physx_includes.h" 00023 00024 class PhysxWheelDesc; 00025 class PhysxWheelShape; 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Class : PhysxWheel 00029 // Description : 00030 //////////////////////////////////////////////////////////////////// 00031 class EXPCL_PANDAPHYSX PhysxWheel : public PhysxObject { 00032 00033 PUBLISHED: 00034 INLINE PhysxWheel(); 00035 INLINE ~PhysxWheel(); 00036 00037 //PhysxActor *get_touched_actor() const; 00038 //PhysxWheelShape *get_wheel_shape() const; 00039 00040 //void attach_node_path(const NodePath &np); 00041 //void detach_node_path(); 00042 //NodePath get_node_path() const; 00043 00044 INLINE void ls() const; 00045 INLINE void ls(ostream &out, int indent_level=0) const; 00046 00047 public: 00048 00049 private: 00050 PT(PhysxWheelShape) _wheelShape; 00051 NodePath _np; 00052 00053 //////////////////////////////////////////////////////////////////// 00054 public: 00055 static TypeHandle get_class_type() { 00056 return _type_handle; 00057 } 00058 static void init_type() { 00059 PhysxObject::init_type(); 00060 register_type(_type_handle, "PhysxWheel", 00061 PhysxObject::get_class_type()); 00062 } 00063 virtual TypeHandle get_type() const { 00064 return get_class_type(); 00065 } 00066 virtual TypeHandle force_init_type() { 00067 init_type(); 00068 return get_class_type(); 00069 } 00070 00071 private: 00072 static TypeHandle _type_handle; 00073 }; 00074 00075 #include "physxWheel.I" 00076 00077 #endif // PHYSXWHEEL_H