You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Packages/NativeTrees/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,10 @@ There are two samples included that show how to use the octree and quadtree.
74
74
The extension classes provide readymade solutions for AABB only checking. For more complicated
75
75
shapes you must provide your own ray/overlap/distance calculations.
76
76
77
+
NOTE: If you've imported the package via the Unity Package Manager, you need to copy the
78
+
sample scenes to your Assets folder to open them.
79
+
[See this thread](https://forum.unity.com/threads/it-is-not-allowed-to-open-a-scene-in-a-read-only-package-why.1148036/)
80
+
77
81
### Insertion
78
82
The objects can be of any unmanaged type, when inserting, an AABB must be provided:
79
83
@@ -92,7 +96,6 @@ If you know your objects are points, you can insert them faster by using:
92
96
// Insert entities that are 'points'
93
97
for (int i = 0; i < entities.Length; i++)
94
98
{
95
-
var entity = entities[i];
96
99
octree.InsertPoint(entities[i], positions[i]);
97
100
}
98
101
@@ -200,7 +203,8 @@ Feel free to raise an issue or contact me for any questions.
200
203
The code is free to use in your project(s).
201
204
If this was helpful to you, consider buying me a coffee ;)
202
205
203
-
https://ko-fi.com/bartofzo
206
+
<ahref='https://ko-fi.com/bartofzo'target='_blank'><imgheight='35'style='border:0px;height:46px;'src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0'border='0'alt='Buy Me a Coffee at ko-fi.com' />
0 commit comments