Tnua and dolly (#2)

* character controller + camera rig
* make tnua work
* cash collect
This commit is contained in:
extrawurst
2025-03-05 00:04:15 +01:00
committed by GitHub
parent 6cbab44fb3
commit f44f51aa8f
6 changed files with 309 additions and 35 deletions

View File

@@ -89,9 +89,12 @@ impl CashSpawn {
let mesh = asset_server.load(GltfAssetLabel::Scene(0).from_asset("models/cash.glb"));
world
.commands()
.entity(entity)
.insert((Name::new("cash"), SceneRoot(mesh), Cash));
world.commands().entity(entity).insert((
Name::new("cash"),
SceneRoot(mesh),
Cash,
Collider::cuboid(2., 3.0, 2.),
Sensor,
));
}
}