Browse Source

*** empty log message ***

Mike Goslin 25 years ago
parent
commit
0ccdca9d80
2 changed files with 12 additions and 0 deletions
  1. 10 0
      panda/src/physics/linearVectorForce.I
  2. 2 0
      panda/src/physics/linearVectorForce.h

+ 10 - 0
panda/src/physics/linearVectorForce.I

@@ -22,3 +22,13 @@ INLINE void LinearVectorForce::
 set_vector(float x, float y, float z) {
   _fvec.set(x, y, z);
 }
+
+////////////////////////////////////////////////////////////////////
+//    Function : get_vector
+//      Access : Public
+// Description :
+////////////////////////////////////////////////////////////////////
+INLINE LVector3f LinearVectorForce::
+get_vector(void) const {
+  return _fvec;
+}

+ 2 - 0
panda/src/physics/linearVectorForce.h

@@ -30,6 +30,8 @@ PUBLISHED:
   INLINE void set_vector(const LVector3f& v);
   INLINE void set_vector(float x, float y, float z);
 
+  INLINE LVector3f get_vector(void) const;
+
 public:
   static TypeHandle get_class_type(void) {
     return _type_handle;