i have not the slightest idea why this is blowing up in my face rn

This commit is contained in:
Schrottkatze 2025-06-27 22:43:43 +02:00
parent 324f1c04ed
commit 8f6e24875a
Signed by: schrottkatze
SSH key fingerprint: SHA256:/raZeWZ2RLThYkX/nq26frnmA4Bi3qRM/hijRmDBa10
12 changed files with 210 additions and 88 deletions

View file

@ -4,7 +4,7 @@ use bevy::{
asset::{AssetPath, io::AssetSourceEvent},
prelude::*,
};
use bevy_rapier3d::render::DebugRenderContext;
use bevy_rapier3d::{prelude::RigidBody, render::DebugRenderContext};
use crate::debug::{ConsoleLog, DebugEvent, DebugMode};
@ -37,7 +37,11 @@ fn handle_load_gltf(
let scene_handle = asset_server
.load(GltfAssetLabel::Scene(0).from_asset(AssetPath::from(asset_path.clone())));
let mut scene = c.spawn((SceneRoot(scene_handle), HasPath(asset_path.clone())));
let mut scene = c.spawn((
SceneRoot(scene_handle),
HasPath(asset_path.clone()),
// RigidBody::Fixed,
));
if let Some(id) = id {
scene.insert(Id(id.clone()));