소스 검색

minor tweaks for new scene graph stuff

David Rose 22 년 전
부모
커밋
8d70eeb6ab
1개의 변경된 파일2개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 7
      panda/src/physics/actorNode.cxx

+ 2 - 7
panda/src/physics/actorNode.cxx

@@ -92,18 +92,13 @@ transform_changed() {
   // get the transform
   CPT(TransformState) transform = get_transform();
 
-  // extract the position
-  LPoint3f pos;
-  transform->get_mat().get_row3(pos,3);
-
   // extract the orientation
   if (_mass_center->get_oriented() == true) {
-    LOrientationf orientation(transform->get_mat());
-    _mass_center->set_orientation(orientation);
+    _mass_center->set_orientation(transform->get_quat());
   }
 
   // apply
-  _mass_center->set_position(pos);
+  _mass_center->set_position(transform->get_pos());
 }
 
 ////////////////////////////////////////////////////////////////////