@antti5/ship-tool-common 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,10 +34,10 @@ class BulletSim {
34
34
  const drag = this.area * 0.5 * this.dragCoeff * airDensity * this.vel.sqnorm();
35
35
  const acceleration = this.vel.normalized().mul(-drag / this.mass).add(G_VEC);
36
36
 
37
- /* Start with a time step of 320 ms, and when shell is about to land start halving
37
+ /* Start with a time step of 160 ms, and when shell is about to land start halving
38
38
  the time step down to 10 ms. This ends the trajectory very close to the surface. */
39
39
 
40
- let dt = 0.32;
40
+ let dt = 0.16;
41
41
  while (this.pos.y + this.vel.y * dt * 2 < 0 && dt > 0.01)
42
42
  dt = Math.max(dt / 2, 0.01);
43
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antti5/ship-tool-common",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Ship Tool common utils and library code",
5
5
  "repository": {
6
6
  "type": "git",
File without changes