Implement camera system
This commit is contained in:
+9
-3
@@ -10,7 +10,7 @@ pub mod manifest;
|
||||
|
||||
pub use line::{StagePlaneIntersectResult, StagePoly};
|
||||
|
||||
use crate::stage::line::StageCollision;
|
||||
use crate::{stage::{line::StageCollision, manifest::StageCameraProfile}};
|
||||
|
||||
/// Owns the stage geometry: which scene gets spawned and how it is drawn.
|
||||
#[derive(Default)]
|
||||
@@ -25,7 +25,13 @@ impl Plugin for StagePlugin {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn spawn_stage(commands: &mut Commands, match_root: Entity, visual: Handle<WorldAsset>, collision: StageCollision) {
|
||||
pub fn spawn_stage(
|
||||
commands: &mut Commands,
|
||||
match_root: Entity,
|
||||
visual: Handle<WorldAsset>,
|
||||
collision: StageCollision,
|
||||
camera_profile: StageCameraProfile,
|
||||
) {
|
||||
commands.entity(match_root).insert(WorldAssetRoot(visual));
|
||||
scene::spawn_stage_support(commands, match_root, collision);
|
||||
scene::spawn_stage_support(commands, match_root, collision, camera_profile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user