@quenty/sunpositionutils 2.3.2 → 2.3.3-canary.559.339cfa7.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 +8 -0
- package/package.json +2 -2
- package/src/Shared/SunPositionUtils.lua +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [2.3.3-canary.559.339cfa7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/sunpositionutils@2.3.2...@quenty/sunpositionutils@2.3.3-canary.559.339cfa7.0) (2025-05-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/sunpositionutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.3.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/sunpositionutils@2.3.0...@quenty/sunpositionutils@2.3.2) (2025-04-07)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/sunpositionutils",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3-canary.559.339cfa7.0",
|
|
4
4
|
"description": "Utility to position the sun and to retrieve sun information specific to Roblox.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "339cfa778736f08768ed7305041f6221faa35bfc"
|
|
31
31
|
}
|
|
@@ -75,7 +75,7 @@ end
|
|
|
75
75
|
@return Vector3 -- Moon position
|
|
76
76
|
]=]
|
|
77
77
|
function SunPositionUtils.getSunPosition(clockTime: number, geoLatitude: number): (Vector3, Vector3)
|
|
78
|
-
local seconds = clockTime*60*60
|
|
78
|
+
local seconds = clockTime * 60 * 60
|
|
79
79
|
local DAY = 24 * 60 * 60
|
|
80
80
|
local YEAR = 365.2564 * DAY
|
|
81
81
|
local HALFYEAR = 182.6282
|
|
@@ -93,7 +93,7 @@ function SunPositionUtils.getSunPosition(clockTime: number, geoLatitude: number)
|
|
|
93
93
|
local trueSunPosition = CFrame.fromAxisAngle(ZAXIS:Cross(sunPosition), sunOffset) * sunPosition
|
|
94
94
|
local trueMoonPosition = CFrame.fromAxisAngle(ZAXIS:Cross(moonPosition), sunOffset) * moonPosition
|
|
95
95
|
|
|
96
|
-
return trueSunPosition, trueMoonPosition*Vector3.new(1, -1, 1)
|
|
96
|
+
return trueSunPosition, trueMoonPosition * Vector3.new(1, -1, 1)
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
-
return SunPositionUtils
|
|
99
|
+
return SunPositionUtils
|