From ca2e0b3922da74799be812e5a534a20d611fce1a Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 16 Mar 2025 19:01:31 +0000 Subject: entity collisions --- azalea-core/src/position.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'azalea-core/src') diff --git a/azalea-core/src/position.rs b/azalea-core/src/position.rs index 5d923d39..2dea1471 100755 --- a/azalea-core/src/position.rs +++ b/azalea-core/src/position.rs @@ -125,6 +125,16 @@ macro_rules! vec3_impl { z: self.z, } } + + pub fn with_x(&self, x: $type) -> Self { + Self { x, ..*self } + } + pub fn with_y(&self, y: $type) -> Self { + Self { y, ..*self } + } + pub fn with_z(&self, z: $type) -> Self { + Self { z, ..*self } + } } impl Add for &$name { -- cgit v1.2.3