From 7517ec753ca991bc49a109787bdcc0e57431c1d7 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Fri, 25 Jul 2003 23:26:59 +0000 Subject: [PATCH] changing force coordinate system --- panda/src/physics/physicsCollisionHandler.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/panda/src/physics/physicsCollisionHandler.cxx b/panda/src/physics/physicsCollisionHandler.cxx index 75561aa7fc..849c8a43af 100755 --- a/panda/src/physics/physicsCollisionHandler.cxx +++ b/panda/src/physics/physicsCollisionHandler.cxx @@ -64,9 +64,16 @@ apply_linear_force(ColliderDef &def, const LVector3f &force) { physics_debug(" vel "<get_mat()) { + cerr<<"\nforce!=force*trans->get_mat()"<get_mat())<get_physics_object()->get_lcs(); + LVector3f adjustment=(force * trans->get_mat())*actor->get_physics_object()->get_lcs(); physics_debug(" adjustment set "<