@quenty/getgroundplane 3.1.1 → 3.2.0-canary.241.a4e8214.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 +16 -0
- package/LICENSE.md +1 -1
- package/README.md +5 -3
- package/package.json +3 -3
- package/src/Shared/batchRaycast.lua +5 -2
- package/src/Shared/getGroundPlane.lua +24 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.2.0-canary.241.a4e8214.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/getgroundplane@3.1.2...@quenty/getgroundplane@3.2.0-canary.241.a4e8214.0) (2022-01-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/getgroundplane
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.1.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/getgroundplane@3.1.1...@quenty/getgroundplane@3.1.2) (2021-12-30)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/getgroundplane
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [3.1.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/getgroundplane@3.1.0...@quenty/getgroundplane@3.1.1) (2021-10-30)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @quenty/getgroundplane
|
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
## getGroundPlane
|
|
2
2
|
<div align="center">
|
|
3
|
-
<a href="http://quenty.github.io/
|
|
4
|
-
<img src="https://
|
|
3
|
+
<a href="http://quenty.github.io/NevermoreEngine/">
|
|
4
|
+
<img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/docs.yml/badge.svg" alt="Documentation status" />
|
|
5
5
|
</a>
|
|
6
6
|
<a href="https://discord.gg/mhtGUS8">
|
|
7
|
-
<img src="https://img.shields.io/
|
|
7
|
+
<img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
|
|
8
8
|
</a>
|
|
9
9
|
<a href="https://github.com/Quenty/NevermoreEngine/actions">
|
|
10
10
|
<img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/build.yml/badge.svg" alt="Build and release status" />
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
Function that uses raycasting to determine the groundplane in Roblox
|
|
15
15
|
|
|
16
|
+
<div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/getGroundPlane">View docs →</a></div>
|
|
17
|
+
|
|
16
18
|
## Installation
|
|
17
19
|
```
|
|
18
20
|
npm install @quenty/getgroundplane --save
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/getgroundplane",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0-canary.241.a4e8214.0",
|
|
4
4
|
"description": "Function that uses raycasting to determine the groundplane in Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/loader": "
|
|
28
|
+
"@quenty/loader": "3.2.0-canary.241.a4e8214.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@quenty/loader": "file:../loader"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "a4e821471f35998d63f38a4f4a578e07b4e79035"
|
|
37
37
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
--[=[
|
|
2
|
+
Function that uses raycasting to determine the groundplane in Roblox.
|
|
3
|
+
@class getGroundPlane
|
|
4
|
+
]=]
|
|
3
5
|
|
|
4
6
|
local require = require(script.Parent.loader).load(script)
|
|
5
7
|
|
|
@@ -69,8 +71,26 @@ end
|
|
|
69
71
|
|
|
70
72
|
local goldenAngle = (3 - 5^0.5)*math.pi
|
|
71
73
|
|
|
72
|
-
--
|
|
73
|
-
|
|
74
|
+
--[=[
|
|
75
|
+
Uses -y as the direction
|
|
76
|
+
|
|
77
|
+
Searchs for a groundPlane given a basis. Useful for planting a object
|
|
78
|
+
in 3D space on terrain.
|
|
79
|
+
|
|
80
|
+
:::warning
|
|
81
|
+
ignoreFunc REALLY SHOULD NOT YIELD
|
|
82
|
+
:::
|
|
83
|
+
|
|
84
|
+
@function getGroundPlane
|
|
85
|
+
@param basis Vector3
|
|
86
|
+
@param radius number
|
|
87
|
+
@param length number
|
|
88
|
+
@param sampleCount number
|
|
89
|
+
@param ignoreFunc (Instance) -> boolean
|
|
90
|
+
@return Vector3 -- position
|
|
91
|
+
@return Vector3 -- normal
|
|
92
|
+
@within getGroundPlane
|
|
93
|
+
]=]
|
|
74
94
|
local function getGroundPlane(
|
|
75
95
|
basis, radius, length, sampleCount,
|
|
76
96
|
ignoreList, ignoreFunc
|