Commits

Richard Jones committed a6d43b6

remove duplicated methods; un-private variable name

Comments (0)

Files changed (1)

cython/newton.pyx

         cdef float *out_vector = [0, 0, 0]
         newton.NewtonBodyCalculateInverseDynamicsForce(self._body, dt, desired_vector, out_vector)
         return out_vector[0], out_vector[1], out_vector[2]
-    def add_impulse(self, pointDeltaVelocX, pointDeltaVelocY, pointDeltaVelocZ,
-            pointPositX, pointPositY, pointPositZ):
-        cdef float *_vector0 = [pointDeltaVelocX, pointDeltaVelocY, pointDeltaVelocZ]
-        cdef float *_vector1 = [pointPositX, pointPositY, pointPositZ]
-        newton.NewtonBodyAddImpulse(self._body, _vector0, _vector1)
-    
-    # NewtonBodyAddTorque
-    def add_torque(self, tx, ty, tz):
-        cdef float *_vector = [tx, ty, tz]
-        newton.NewtonBodyAddTorque(self._body, _vector)
-    
-    # NewtonBodyGetAABB
-    def get_aabb(self):
-        cdef float _vector0[3]
-        cdef float _vector1[3]
-        newton.NewtonBodyGetAABB(self._body, _vector0, _vector1)
-        return (_vector0[0], _vector0[1], _vector0[2]), (_vector1[0], _vector1[1], _vector1[2])
-    
-    # NewtonBodyGetAngularDamping
-    def get_angular_damping(self):
-        cdef float _vector[3]
-        newton.NewtonBodyGetAngularDamping(self._body, _vector)
-        return _vector[0], _vector[1], _vector[2]
-    
-    # NewtonBodyGetAutoSleep
-    def get_auto_sleep(self):
-        return newton.NewtonBodyGetAutoSleep(self._body)
-        
-    # NewtonBodyGetCentreOfMass
-    def get_centre_of_mass(self):
-        cdef float _vector[3]
-        newton.NewtonBodyGetCentreOfMass(self._body, _vector)
-        return _vector[0], _vector[1], _vector[2]
-    
-    # NewtonBodyGetCollision
-    def get_collision(self):
-        return self._collision
-        
-    # NewtonBodyGetContinuousCollisionMode
-    def get_continuous_collision_mode(self):
-        return newton.NewtonBodyGetContinuousCollisionMode(self._body)
-    
-    # NewtonBodyGetForce
-    def get_force(self):
-        cdef float _vector[3]
-        newton.NewtonBodyGetForce(self._body, _vector)
-        return _vector[0], _vector[1], _vector[2]
 
     # NewtonConstraintCreateUpVector
     def create_up_vector(self, x, y, z):
         m._group_id = NewtonBodyGetMaterialGroupID(self._body)
         return m
 
-    # NewtonBodyGetUserData
-    def get_user_data(self):
-        return self.__user_data
-        
     # NewtonBodyAddForce
     def add_force(self, forcex, forcey, forcez):
         cdef float *_vector = [forcex, forcey, forcez]
         
     # NewtonBodySetUserData
     def set_user_data(self, user_data):
-        self.__user_data = user_data
+        self._user_data = user_data
         
     # NewtonBodyGetUserData
     def get_user_data(self):
-        return self.__user_data
+        return self._user_data
         
 #---------------------------------------------------------------------------------------------------
 # Physics material related callback support.