Channel | Publish Date | Thumbnail & View Count | Download Video |
---|---|---|---|
Publish Date not found | 0 Views |
NOTE: The custom method RandomPointInAnnulus achieves uniform distribution within an annulus by using the square root of a uniformly distributed random value to determine the radius, thus ensuring a uniform distribution of points across the area. This approach takes into account the increasing area with the square of the radius, resulting in a uniform density of points. In contrast, Unity's Random.insideUnitCircle generates points based on a uniform radius distribution, resulting in a higher concentration of points near the center because the larger area is not taken into account at larger radii.
Do you want to support me?
Buy me a coffee! https://ko-fi.com/adammyhre
For more Unity tutorials, subscribe to https://youtube.com/@git-amend
Discord: https://discord.gg/FDRZGQBBUC
#unity3d #gamedev #indiedev
▬ Contents of this video ▬▬▬▬▬▬▬▬▬
0:00 A naive spawning system
1:16 flyweight
4:00 Factory
6:10 Strategy
9:05 Command
10:40 Builder
13:05 Decorator
Other useful code:
https://github.com/adammyhre?tab=repositories
Unity Utils Library: https://github.com/adammyhre/Unity-Utils
Hotkey for lock inspector: https://gist.github.com/adammyhre/4754f731a93bf1cab0d1385ccfa23642
Assets shown in this video (affiliate links)
Dungeon Mason Tiny Hero Duo: (FREE): https://assetstore.unity.com/packages/3d/characters/humanoids/rpg-tiny-hero-duo-pbr-polyart-225148?aid=1101lw3sv
Hierarchy symbols: https://assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963?aid=1101lw3sv
Tiny Heroes: https://assetstore.unity.com/packages/3d/characters/humanoids/rpg-tiny-hero-wave-pbr-228701?aid=1101lw3sv
Fantasy Forest: https://assetstore.unity.com/packages/3d/environments/fantasy/fantasy-forest-environment-34245?aid=1101lw3sv
Better transform: https://assetstore.unity.com/packages/tools/utilities/better-transform-size-notes-global-local-workspace-child-parent–276554?aid=1101lw3sv
Better mesh filter: https://assetstore.unity.com/packages/tools/utilities/better-mesh-filter-266489?aid=1101lw3sv
Kyeom's VFX: https://assetstore.unity.com/publishers/52756?aid=1101lw3sv
*Follow me!*
https://linktr.ee/gitamend
Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.