mirror of
https://codeberg.org/schrottkatze/mgd2-tram-championships.git
synced 2025-07-02 09:37:40 +00:00
i have not the slightest idea why this is blowing up in my face rn
This commit is contained in:
parent
324f1c04ed
commit
8f6e24875a
12 changed files with 210 additions and 88 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue