Răsfoiți Sursa

allow query of vector masks

Josh Wilson 19 ani în urmă
părinte
comite
f71690b252
2 a modificat fișierele cu 10 adăugiri și 0 ștergeri
  1. 9 0
      panda/src/physics/linearForce.I
  2. 1 0
      panda/src/physics/linearForce.h

+ 9 - 0
panda/src/physics/linearForce.I

@@ -62,3 +62,12 @@ set_vector_masks(bool x, bool y, bool z) {
   _y_mask = y;
   _y_mask = y;
   _z_mask = z;
   _z_mask = z;
 }
 }
+
+////////////////////////////////////////////////////////////////////
+//    Function : set_vector_masks
+//      Access : Public
+////////////////////////////////////////////////////////////////////
+INLINE LVector3f LinearForce::
+get_vector_masks() {
+  return LVector3f(_x_mask, _y_mask, _z_mask);
+}

+ 1 - 0
panda/src/physics/linearForce.h

@@ -37,6 +37,7 @@ PUBLISHED:
   INLINE bool get_mass_dependent() const;
   INLINE bool get_mass_dependent() const;
 
 
   INLINE void set_vector_masks(bool x, bool y, bool z);
   INLINE void set_vector_masks(bool x, bool y, bool z);
+  INLINE LVector3f get_vector_masks();
 
 
   LVector3f get_vector(const PhysicsObject *po);
   LVector3f get_vector(const PhysicsObject *po);