From 4d7f9a431f0dd6dfed1b94fe16a060ac437c23ac Mon Sep 17 00:00:00 2001 From: Kayh Date: Wed, 21 Aug 2024 19:32:38 -0400 Subject: [PATCH] add vec2 --- spatial/wit/wired-math/world.wit | 13 +++++++++---- spatial/wit/wired-prelude/world.wit | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/spatial/wit/wired-math/world.wit b/spatial/wit/wired-math/world.wit index dc9c79d..39ef291 100644 --- a/spatial/wit/wired-math/world.wit +++ b/spatial/wit/wired-math/world.wit @@ -1,10 +1,9 @@ package wired:math; interface types { - record transform { - rotation: quat, - scale: vec3, - translation: vec3, + record vec2 { + x: f32, + y: f32, } record vec3 { @@ -19,4 +18,10 @@ interface types { z: f32, w: f32, } + + record transform { + rotation: quat, + scale: vec3, + translation: vec3, + } } diff --git a/spatial/wit/wired-prelude/world.wit b/spatial/wit/wired-prelude/world.wit index 8b771ce..b188007 100644 --- a/spatial/wit/wired-prelude/world.wit +++ b/spatial/wit/wired-prelude/world.wit @@ -1,6 +1,6 @@ package wired:prelude; -// Prelude to be `include`d in your world for ease of use. +// Prelude to be included in your world for ease of use. world imports { import wired:input/handler; import wired:log/api;