remove 'CyberBikeModel' marker component
This commit is contained in:
parent
e524decd38
commit
c04fb9fa11
2 changed files with 2 additions and 6 deletions
|
@ -23,9 +23,6 @@ pub struct CyberBikeBody;
|
|||
#[derive(Component)]
|
||||
pub struct CyberBikeCollider;
|
||||
|
||||
#[derive(Component, Debug)]
|
||||
pub struct CyberBikeModel;
|
||||
|
||||
#[derive(Debug, Component)]
|
||||
pub struct CyberWheel;
|
||||
|
||||
|
@ -139,7 +136,6 @@ fn spawn_cyberbike(
|
|||
..Default::default()
|
||||
});
|
||||
})
|
||||
.insert(CyberBikeModel)
|
||||
.insert(CyberBikeBody)
|
||||
.insert(CyberBikeControl::default())
|
||||
.id();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use bevy::prelude::*;
|
||||
|
||||
use crate::{bike::CyberBikeModel, input::InputState};
|
||||
use crate::{bike::CyberBikeBody, input::InputState};
|
||||
|
||||
// 85 degrees in radians
|
||||
const MAX_PITCH: f32 = 1.48353;
|
||||
|
@ -57,7 +57,7 @@ fn setup_cybercams(mut commands: Commands) {
|
|||
fn follow_cyberbike(
|
||||
mut query: ParamSet<(
|
||||
// 0: the bike
|
||||
Query<&Transform, With<CyberBikeModel>>,
|
||||
Query<&Transform, With<CyberBikeBody>>,
|
||||
// 1: the cameras
|
||||
Query<(&mut Transform, &CyberCameras)>,
|
||||
)>,
|
||||
|
|
Loading…
Reference in a new issue