Browse Source

Revert: mass is already dealt with

Borut 7 năm trước cách đây
mục cha
commit
8523432b3b
2 tập tin đã thay đổi với 3468 bổ sung3469 xóa
  1. 3468 3468
      dist/preview release/babylon.d.ts
  2. 0 1
      src/Physics/babylon.physicsHelper.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 3468 - 3468
dist/preview release/babylon.d.ts


+ 0 - 1
src/Physics/babylon.physicsHelper.ts

@@ -173,7 +173,6 @@ module BABYLON {
             var multiplier = falloff === PhysicsRadialImpulseFallof.Constant
                 ? strength
                 : strength * (1 - (distanceFromOrigin / radius));
-            multiplier /= impostor.mass;
 
             var force = direction.multiplyByFloats(multiplier, multiplier, multiplier);