fix: new apis

This commit is contained in:
Nova
2024-05-28 01:24:49 -04:00
parent 89fcc55cca
commit d7fba79be9
5 changed files with 445 additions and 426 deletions

View File

@@ -77,6 +77,7 @@ impl Spatial {
if let Some(parent) = parent {
parent.children.add_raw(&spatial);
}
<Spatial as SpatialRefAspect>::add_node_members(node);
<Spatial as SpatialAspect>::add_node_members(node);
node.add_aspect_raw(spatial.clone());
spatial
@@ -243,7 +244,7 @@ impl Spatial {
impl Aspect for Spatial {
const NAME: &'static str = "Spatial";
}
impl SpatialAspect for Spatial {
impl SpatialRefAspect for Spatial {
async fn get_local_bounding_box(
node: Arc<Node>,
_calling_client: Arc<Client>,
@@ -304,7 +305,8 @@ impl SpatialAspect for Spatial {
scale: Some(scale.into()),
})
}
}
impl SpatialAspect for Spatial {
fn set_local_transform(
node: Arc<Node>,
_calling_client: Arc<Client>,