@quenty/terrainutils 3.4.1-canary.4c04014.0 → 4.0.0

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.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [3.4.1-canary.4c04014.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/terrainutils@3.4.0...@quenty/terrainutils@3.4.1-canary.4c04014.0) (2022-01-17)
6
+ # [4.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/terrainutils@3.5.0...@quenty/terrainutils@4.0.0) (2022-03-06)
7
+
8
+ **Note:** Version bump only for package @quenty/terrainutils
9
+
10
+
11
+
12
+
13
+
14
+ # [3.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/terrainutils@3.4.0...@quenty/terrainutils@3.5.0) (2022-01-17)
7
15
 
8
16
  **Note:** Version bump only for package @quenty/terrainutils
9
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/terrainutils",
3
- "version": "3.4.1-canary.4c04014.0",
3
+ "version": "4.0.0",
4
4
  "description": "Utility functions for manipulating terrain",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,13 +25,13 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/loader": "3.3.1-canary.4c04014.0",
29
- "@quenty/region3int16utils": "3.4.1-canary.4c04014.0",
30
- "@quenty/region3utils": "3.4.1-canary.4c04014.0",
31
- "@quenty/vector3int16utils": "2.0.1"
28
+ "@quenty/loader": "^4.0.0",
29
+ "@quenty/region3int16utils": "^4.0.0",
30
+ "@quenty/region3utils": "^4.0.0",
31
+ "@quenty/vector3int16utils": "^2.0.1"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "4c040145693283525ba3f4c793cead7abee28fb2"
36
+ "gitHead": "dd428cab58282c975a4c082957dc8f58e3186905"
37
37
  }
@@ -17,14 +17,14 @@ function TerrainUtils.getTerrainRegion3(position, size, resolution)
17
17
  end
18
18
 
19
19
  function TerrainUtils.getTerrainRegion3int16FromRegion3(region3, resolution)
20
- local position = region3.CFrame.p/resolution
20
+ local position = region3.CFrame.Position/resolution
21
21
  local size = region3.Size/resolution
22
22
 
23
23
  return Region3int16Utils.createRegion3int16FromPositionSize(position, size)
24
24
  end
25
25
 
26
26
  function TerrainUtils.getCorner(region3)
27
- local position = region3.CFrame.p
27
+ local position = region3.CFrame.Position
28
28
  local halfSize = region3.Size/2
29
29
 
30
30
  return position - halfSize