From e6bfdab6d5a0083633b055161a6a095c8b01e9f6 Mon Sep 17 00:00:00 2001 From: Kayh Date: Tue, 20 Aug 2024 16:49:30 -0400 Subject: [PATCH] add cylinder physics collider --- spatial/wit/wired-physics/world.wit | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spatial/wit/wired-physics/world.wit b/spatial/wit/wired-physics/world.wit index 76e8213..a9b49ec 100644 --- a/spatial/wit/wired-physics/world.wit +++ b/spatial/wit/wired-physics/world.wit @@ -14,8 +14,14 @@ interface types { set-density: func(value: f32); } + record shape-cylinder { + height: f32, + radius: f32, + } + variant shape { cuboid(vec3), + cylinder(shape-cylinder), sphere(f32), }