From 13d5cbed1fed1695c28dc1bf1c11b24c68819970 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 20 Mar 2025 01:49:15 +0000 Subject: document Position default --- azalea-entity/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'azalea-entity/src') diff --git a/azalea-entity/src/lib.rs b/azalea-entity/src/lib.rs index 4893878a..32b0a19f 100644 --- a/azalea-entity/src/lib.rs +++ b/azalea-entity/src/lib.rs @@ -140,8 +140,11 @@ impl Debug for EntityUuid { /// The position of the entity right now. /// -/// You are free to change this; there's systems that update the indexes -/// automatically. +/// You are free to change the value of this component; there's systems that +/// update the indexes automatically. +/// +/// Its value is set to a default of [`Vec3::ZERO`] when it receives the login +/// packet, its true position may be set ticks later. #[derive(Component, Clone, Copy, Debug, Default, PartialEq, Deref, DerefMut)] pub struct Position(Vec3); impl Position { -- cgit v1.2.3