|
@@ -51,9 +51,7 @@ PUBLISHED:
|
|
|
INLINE void set_auto_disable_flag(int do_auto_disable);
|
|
INLINE void set_auto_disable_flag(int do_auto_disable);
|
|
|
INLINE void set_auto_disable_defaults();
|
|
INLINE void set_auto_disable_defaults();
|
|
|
INLINE void set_data(void *data);
|
|
INLINE void set_data(void *data);
|
|
|
-#ifdef HAVE_PYTHON
|
|
|
|
|
- void set_data(PyObject *data);
|
|
|
|
|
-#endif
|
|
|
|
|
|
|
+ EXTENSION(void set_data(PyObject *data));
|
|
|
|
|
|
|
|
INLINE void set_position(dReal x, dReal y, dReal z);
|
|
INLINE void set_position(dReal x, dReal y, dReal z);
|
|
|
INLINE void set_position(const LVecBase3f &pos);
|
|
INLINE void set_position(const LVecBase3f &pos);
|
|
@@ -71,11 +69,10 @@ PUBLISHED:
|
|
|
INLINE int get_auto_disable_steps() const;
|
|
INLINE int get_auto_disable_steps() const;
|
|
|
INLINE dReal get_auto_disable_time() const;
|
|
INLINE dReal get_auto_disable_time() const;
|
|
|
INLINE int get_auto_disable_flag() const;
|
|
INLINE int get_auto_disable_flag() const;
|
|
|
-#ifdef HAVE_PYTHON
|
|
|
|
|
- PyObject* get_data() const;
|
|
|
|
|
-#else
|
|
|
|
|
- INLINE void* get_data() const;
|
|
|
|
|
|
|
+#ifndef CPPPARSER
|
|
|
|
|
+ INLINE void *get_data() const;
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+ EXTENSION(PyObject *get_data() const);
|
|
|
|
|
|
|
|
INLINE LVecBase3f get_position() const;
|
|
INLINE LVecBase3f get_position() const;
|
|
|
INLINE LMatrix3f get_rotation() const;
|
|
INLINE LMatrix3f get_rotation() const;
|
|
@@ -150,6 +147,10 @@ PUBLISHED:
|
|
|
private:
|
|
private:
|
|
|
dBodyID _id;
|
|
dBodyID _id;
|
|
|
|
|
|
|
|
|
|
+public:
|
|
|
|
|
+ typedef void (*DestroyCallback)(OdeBody &body);
|
|
|
|
|
+ DestroyCallback _destroy_callback = nullptr;
|
|
|
|
|
+
|
|
|
public:
|
|
public:
|
|
|
static TypeHandle get_class_type() {
|
|
static TypeHandle get_class_type() {
|
|
|
return _type_handle;
|
|
return _type_handle;
|