diff --git a/panda/src/physics/actorNode.cxx b/panda/src/physics/actorNode.cxx index 5cde769c73..34be6ccccb 100644 --- a/panda/src/physics/actorNode.cxx +++ b/panda/src/physics/actorNode.cxx @@ -108,19 +108,6 @@ transform_changed() { _mass_center->set_position(transform->get_pos()); } -//////////////////////////////////////////////////////////////////// -// Function : output -// Access : Public -// Description : Write a string representation of this instance to -// . -//////////////////////////////////////////////////////////////////// -void ActorNode:: -output(ostream &out) const { - #ifndef NDEBUG //[ - out<<"ActorNode"; - #endif //] NDEBUG -} - //////////////////////////////////////////////////////////////////// // Function : write // Access : Public diff --git a/panda/src/physics/actorNode.h b/panda/src/physics/actorNode.h index c442436e0f..420a3e7691 100644 --- a/panda/src/physics/actorNode.h +++ b/panda/src/physics/actorNode.h @@ -46,7 +46,6 @@ PUBLISHED: // i.e. copy from PhysicsObject to PandaNode void update_transform(); - virtual void output(ostream &out) const; virtual void write(ostream &out, unsigned int indent=0) const; private: diff --git a/panda/src/physics/forceNode.cxx b/panda/src/physics/forceNode.cxx index 02015a3df9..a432b382c9 100644 --- a/panda/src/physics/forceNode.cxx +++ b/panda/src/physics/forceNode.cxx @@ -116,10 +116,8 @@ remove_force(int index) { //////////////////////////////////////////////////////////////////// void ForceNode:: output(ostream &out) const { - #ifndef NDEBUG //[ PandaNode::output(out); out<<" ("<<_forces.size()<<" forces)"; - #endif //] NDEBUG } //////////////////////////////////////////////////////////////////// diff --git a/panda/src/physics/physicalNode.cxx b/panda/src/physics/physicalNode.cxx index 335cecc194..804f24cf2c 100644 --- a/panda/src/physics/physicalNode.cxx +++ b/panda/src/physics/physicalNode.cxx @@ -108,19 +108,6 @@ remove_physical(int index) { _physicals.erase(remove); } -//////////////////////////////////////////////////////////////////// -// Function : output -// Access : Public -// Description : Write a string representation of this instance to -// . -//////////////////////////////////////////////////////////////////// -void PhysicalNode:: -output(ostream &out) const { - #ifndef NDEBUG //[ - out<<"PhysicalNode"; - #endif //] NDEBUG -} - //////////////////////////////////////////////////////////////////// // Function : write // Access : Public diff --git a/panda/src/physics/physicalNode.h b/panda/src/physics/physicalNode.h index 960320227f..ebcba7c1d9 100644 --- a/panda/src/physics/physicalNode.h +++ b/panda/src/physics/physicalNode.h @@ -44,7 +44,6 @@ PUBLISHED: void remove_physical(Physical *physical); void remove_physical(int index); - virtual void output(ostream &out) const; virtual void write(ostream &out, unsigned int indent=0) const; public: diff --git a/panda/src/physics/physicsCollisionHandler.cxx b/panda/src/physics/physicsCollisionHandler.cxx index d660144e9a..92ce7389dd 100755 --- a/panda/src/physics/physicsCollisionHandler.cxx +++ b/panda/src/physics/physicsCollisionHandler.cxx @@ -58,11 +58,7 @@ apply_friction(ColliderDef &def, LVector3f& vel, const LVector3f& force, float a if (vel!=LVector3f::zero()) { float friction_coefficient=0.0f; // Determine the friction: - if (fabs(force.dot(LVector3f::unit_z()))<0.5f) { - // ...The force is nearly horizontal, it is probably a wall. - physics_debug(" wall friction"); - friction_coefficient=0.0f; - } else if (vel.length()<_almost_stationary_speed) { + if (vel.length()<_almost_stationary_speed) { physics_debug(" static friction"); friction_coefficient=_static_friction_coef; } else { @@ -149,13 +145,10 @@ apply_net_shove(ColliderDef &def, const LVector3f& net_shove, const LVector3f &f // This adjustment to our velocity will not reflect us off the surface, // but will deflect us parallel (or tangent) to the surface: - if (normalize(net_shove).dot(LVector3f::unit_z())>0.5) { - vel=LVector3f::zero(); - } - //vel+=adjustment; + vel+=adjustment; physics_debug(" vel+adj "<