Update 3d model glb file in sync with google drive.

bevy0.12
Elijah C. Voigt 2 years ago
parent e8e53dcc86
commit 39d9b6a6c8

BIN
assets/models/Martian Chess.glb (Stored with Git LFS)

Binary file not shown.

BIN
assets/models/untitled.glb (Stored with Git LFS)

Binary file not shown.

@ -551,16 +551,8 @@ fn pick_up(
children.iter_descendants(entity).for_each(|child| { children.iter_descendants(entity).for_each(|child| {
if let Ok(mut player) = players.get_mut(child) { if let Ok(mut player) = players.get_mut(child) {
info!("Picking up {:?} {:?}", entity, piece); info!("Picking up {:?} {:?}", entity, piece);
let animation = match piece { let animation = gltf.named_animations.get("PiecePickup");
game::Piece::Queen => gltf.named_animations.get("QueenPickup"), let idle = gltf.named_animations.get("PieceIdle");
game::Piece::Drone => gltf.named_animations.get("DronePickup"),
game::Piece::Pawn => gltf.named_animations.get("PawnPickup"),
};
let idle = match piece {
game::Piece::Queen => gltf.named_animations.get("QueenIdle"),
game::Piece::Drone => gltf.named_animations.get("DroneIdle"),
game::Piece::Pawn => gltf.named_animations.get("PawnIdle"),
};
player player
.start_with_transition( .start_with_transition(
animation.expect("Pickup Animation").clone(), animation.expect("Pickup Animation").clone(),
@ -590,11 +582,7 @@ fn put_down(
children.iter_descendants(entity).for_each(|child| { children.iter_descendants(entity).for_each(|child| {
if let Ok(mut player) = players.get_mut(child) { if let Ok(mut player) = players.get_mut(child) {
info!("Putting down {:?}", entity); info!("Putting down {:?}", entity);
let animation = match piece { let animation = gltf.named_animations.get("PiecePutDown");
game::Piece::Queen => gltf.named_animations.get("QueenPutDown"),
game::Piece::Drone => gltf.named_animations.get("DronePutDown"),
game::Piece::Pawn => gltf.named_animations.get("PawnPutDown"),
};
player player
.start_with_transition( .start_with_transition(
animation.expect("PutDown Animation").clone(), animation.expect("PutDown Animation").clone(),

@ -507,6 +507,6 @@ fn asserts<T: Component>(
); );
} }
if cameras.iter().len() != 1 { if cameras.iter().len() != 1 {
panic!("There should be 2 cameras in this state, but there is only {}", cameras.iter().len()); panic!("There should be 1 cameras in this state, but there is only {}", cameras.iter().len());
} }
} }
Loading…
Cancel
Save