فهرست منبع

flatten shouldn't scale effective normal

David Rose 22 سال پیش
والد
کامیت
4d3451edab
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      panda/src/collide/collisionSolid.cxx

+ 1 - 0
panda/src/collide/collisionSolid.cxx

@@ -91,6 +91,7 @@ void CollisionSolid::
 xform(const LMatrix4f &mat) {
 xform(const LMatrix4f &mat) {
   if (has_effective_normal()) {
   if (has_effective_normal()) {
     _effective_normal = _effective_normal * mat;
     _effective_normal = _effective_normal * mat;
+    _effective_normal.normalize();
   }
   }
 
 
   mark_viz_stale();
   mark_viz_stale();