Explorar el Código

Bullet KCC: amended deg_to_rad in transform_changed.

enn0x hace 12 años
padre
commit
9946d7803a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      panda/src/bullet/bulletCharacterControllerNode.cxx

+ 1 - 1
panda/src/bullet/bulletCharacterControllerNode.cxx

@@ -187,7 +187,7 @@ transform_changed() {
     btMatrix3x3 m = _ghost->getWorldTransform().getBasis();
     btMatrix3x3 m = _ghost->getWorldTransform().getBasis();
     btVector3 up = m[_up];
     btVector3 up = m[_up];
 
 
-    m = btMatrix3x3(btQuaternion(up, heading));
+    m = btMatrix3x3(btQuaternion(up, deg_2_rad(heading)));
 
 
     _ghost->getWorldTransform().setBasis(m);
     _ghost->getWorldTransform().setBasis(m);