Skip to content

ZoneVolume ​

Inherits: SpaceVolume < Area3D

A zone volume: a box, sphere, cylinder or capsule (the shape of its CollisionShape3D child) that puts the party in a zone while it is inside. It sits on top of the zone painted on the ground: a cave under a hill is a zone volume with a higher priority than the forest painted above it; the inside of a building, a tower with its own floors, a floating island too. Where volumes overlap, the one with the highest priority wins (the smaller one on a tie). It needs no physics: the tracker asks every volume whether the party is inside. See docs: World > Zones.

Properties ​

intzone_id0:
intzone_priority0

Methods ​

floatget_shape_size()

Constants ​

  • StringName GROUP = &"zone_volumes" - The group every zone volume is in while it is in the tree (the tracker asks them).

Property descriptions ​

int zone_id = 0: ​

The zone the party is in while it is inside this volume (a ZoneDefinition id)

int zone_priority = 0 ​

Where volumes overlap the highest priority wins. A volume always wins over the zone painted on the ground and over the default zone of the world

Method descriptions ​

float get_shape_size() ​

How big the shape is (m3): of two overlapping volumes of the same priority the smaller one wins.