Table of Contents

Interface IVoxelOccupant

Namespace
GridForge.Spatial
Assembly
GridForge.dll

Represents an entity that can occupy a Voxel. Occupants can be dynamic entities such as units or items (obstacles). GridForge owns occupancy bookkeeping for registered occupants.

public interface IVoxelOccupant

Properties

GlobalId

A globally unique identifier for the occupant.

Guid GlobalId { get; }

Property Value

Guid

OccupantGroupId

The group Id used for grouping occupants within a scan cell. Occupants with the same group Id belong to the same logical group. This allows efficient retrieval of related occupants in spatial queries.

byte OccupantGroupId { get; }

Property Value

byte

Position

The absolute world-space position of the occupant, representing its precise location in the environment.

Vector3d Position { get; }

Property Value

Vector3d