Documentation ¶
Index ¶
- func CountCollisionNeighbors(field h.Field[bool], coord h.Vector) (int, bool)
- func CountFloorNeighbors(field h.Field[bool], coord h.Vector) (int, bool)
- func GenCollisions(size h.Vector) h.Field[bool]
- func GenRandom(size h.Vector, percentFill int) h.Field[bool]
- func GetDepthMap(collisions h.Field[bool]) (h.Field[int], int)
- func GetFloorNearCollision(collisions h.Field[bool]) []h.Vector
- func GetNeighborCoords(coord h.Vector) [8]h.Vector
- func Smooth(collisions h.Field[bool], minNeighbors int) h.Field[bool]
- func SmoothRoughness(collisions h.Field[bool]) h.Field[bool]
- type Area
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountCollisionNeighbors ¶
func CountFloorNeighbors ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.