소스 검색

retooled spherical force ammount display to be based on mAppliedForce

Azaezel 7 년 전
부모
커밋
0444410486
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Engine/source/T3D/physicalZone.cpp

+ 1 - 1
Engine/source/T3D/physicalZone.cpp

@@ -297,7 +297,7 @@ void PhysicalZone::renderObject(ObjectRenderInst *ri,
 	   F32 rad = obb.getBoundingSphere().radius/ 2;
       drawer->drawSphere(desc, rad, start, ColorI(0, 255, 0, 45));
 
-	  rad = (rad + forceLen / 2)/2;
+	  rad = (rad + (mAppliedForce.most() / baseForce))/2;
 	  desc.setFillModeWireframe();
 	  drawer->drawSphere(desc, rad, start, ColorI(0, 0, 255, 255));
    }