mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
removed redundant void
This commit is contained in:
parent
9fe1cd049d
commit
4cca0ea212
@ -27,7 +27,7 @@
|
|||||||
// Description : constructor
|
// Description : constructor
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
BaseIntegrator::
|
BaseIntegrator::
|
||||||
BaseIntegrator(void) {
|
BaseIntegrator() {
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -36,7 +36,7 @@ BaseIntegrator(void) {
|
|||||||
// Description : destructor
|
// Description : destructor
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
BaseIntegrator::
|
BaseIntegrator::
|
||||||
~BaseIntegrator(void) {
|
~BaseIntegrator() {
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
@ -33,8 +33,8 @@ private:
|
|||||||
float dt);
|
float dt);
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
LinearEulerIntegrator(void);
|
LinearEulerIntegrator();
|
||||||
virtual ~LinearEulerIntegrator(void);
|
virtual ~LinearEulerIntegrator();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // EULERINTEGRATOR_H
|
#endif // EULERINTEGRATOR_H
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
// Description : constructor
|
// Description : constructor
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
LinearIntegrator::
|
LinearIntegrator::
|
||||||
LinearIntegrator(void) {
|
LinearIntegrator() {
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -36,7 +36,7 @@ LinearIntegrator(void) {
|
|||||||
// Description : destructor
|
// Description : destructor
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
LinearIntegrator::
|
LinearIntegrator::
|
||||||
~LinearIntegrator(void) {
|
~LinearIntegrator() {
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -62,13 +62,12 @@ integrate(Physical *physical, pvector< PT(LinearForce) > &forces,
|
|||||||
|
|
||||||
// bail out if this object doesn't exist or doesn't want to be
|
// bail out if this object doesn't exist or doesn't want to be
|
||||||
// processed.
|
// processed.
|
||||||
if (current_object == (PhysicsObject *) NULL)
|
if (current_object == (PhysicsObject *) NULL) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// set the object's last position to its current position before we move it
|
// set the object's last position to its current position before we move it
|
||||||
current_object->set_last_position(current_object->get_position());
|
current_object->set_last_position(current_object->get_position());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
child_integrate(physical, forces, dt);
|
child_integrate(physical, forces, dt);
|
||||||
}
|
}
|
||||||
|
@ -47,47 +47,47 @@ private:
|
|||||||
bool _oriented;
|
bool _oriented;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
PhysicsObject(void);
|
PhysicsObject();
|
||||||
PhysicsObject(const PhysicsObject ©);
|
PhysicsObject(const PhysicsObject ©);
|
||||||
virtual ~PhysicsObject(void);
|
virtual ~PhysicsObject();
|
||||||
const PhysicsObject &operator =(const PhysicsObject &other);
|
const PhysicsObject &operator =(const PhysicsObject &other);
|
||||||
|
|
||||||
static const float _default_terminal_velocity;
|
static const float _default_terminal_velocity;
|
||||||
|
|
||||||
INLINE void set_mass(float);
|
INLINE void set_mass(float);
|
||||||
INLINE float get_mass(void) const;
|
INLINE float get_mass() const;
|
||||||
|
|
||||||
INLINE void set_position(const LPoint3f &pos);
|
INLINE void set_position(const LPoint3f &pos);
|
||||||
INLINE void set_position(float x, float y, float z);
|
INLINE void set_position(float x, float y, float z);
|
||||||
INLINE LPoint3f get_position(void) const;
|
INLINE LPoint3f get_position() const;
|
||||||
|
|
||||||
INLINE void set_position_HandOfGod(const LPoint3f &pos);
|
INLINE void set_position_HandOfGod(const LPoint3f &pos);
|
||||||
|
|
||||||
INLINE void set_last_position(const LPoint3f &pos);
|
INLINE void set_last_position(const LPoint3f &pos);
|
||||||
INLINE LPoint3f get_last_position(void) const;
|
INLINE LPoint3f get_last_position() const;
|
||||||
|
|
||||||
INLINE void set_velocity(const LVector3f &vel);
|
INLINE void set_velocity(const LVector3f &vel);
|
||||||
INLINE void set_velocity(float x, float y, float z);
|
INLINE void set_velocity(float x, float y, float z);
|
||||||
INLINE LVector3f get_velocity(void) const;
|
INLINE LVector3f get_velocity() const;
|
||||||
|
|
||||||
INLINE void set_active(bool flag);
|
INLINE void set_active(bool flag);
|
||||||
INLINE bool get_active(void) const;
|
INLINE bool get_active() const;
|
||||||
|
|
||||||
INLINE void set_oriented(bool flag);
|
INLINE void set_oriented(bool flag);
|
||||||
INLINE bool get_oriented(void) const;
|
INLINE bool get_oriented() const;
|
||||||
|
|
||||||
INLINE void set_terminal_velocity(float tv);
|
INLINE void set_terminal_velocity(float tv);
|
||||||
INLINE float get_terminal_velocity(void) const;
|
INLINE float get_terminal_velocity() const;
|
||||||
|
|
||||||
INLINE void set_orientation(const LOrientationf &orientation);
|
INLINE void set_orientation(const LOrientationf &orientation);
|
||||||
INLINE LOrientationf get_orientation(void) const;
|
INLINE LOrientationf get_orientation() const;
|
||||||
|
|
||||||
INLINE void set_rotation(const LVector3f &rotation);
|
INLINE void set_rotation(const LVector3f &rotation);
|
||||||
INLINE LVector3f get_rotation(void) const;
|
INLINE LVector3f get_rotation() const;
|
||||||
|
|
||||||
virtual LMatrix4f get_inertial_tensor(void) const;
|
virtual LMatrix4f get_inertial_tensor(void) const;
|
||||||
virtual LMatrix4f get_lcs(void) const;
|
virtual LMatrix4f get_lcs() const;
|
||||||
virtual PhysicsObject *make_copy(void) const;
|
virtual PhysicsObject *make_copy() const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static TypeHandle get_class_type() {
|
static TypeHandle get_class_type() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user