Fixed ak105 size

This commit is contained in:
Franklin 2023-11-21 15:19:46 -04:00
parent a447e49036
commit f4102db009
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ use bevy_rapier3d::{dynamics::{RigidBody, GravityScale, ExternalImpulse}, geomet
use crate::{comps::core::{
grid::UGrid,
items::item::{Item, ItemType, ItemId},
markers::{holdable::HoldableObjectType, interactable::Interactable, proxy::weapons::initial_attachments::InitialAttachments}, inventory::slot::PlayerInventorySlotType, weapons::{firearm::Firearm, firearm_data::FirearmData, attachments::weapon_attachment::WeaponAttachment}, events::pickup_item::ItemState,
markers::{holdable::HoldableObjectType, interactable::Interactable, proxy::weapons::initial_attachments::InitialAttachments}, inventory::slot::PlayerInventorySlotType, weapons::{firearm::Firearm, firearm_data::FirearmData}, events::pickup_item::ItemState,
}, setup::assets::{GltfAssets, GltfAssetType}, utils};
#[derive(Component, Clone)]
@ -81,7 +81,7 @@ impl Item for Ak105GunItem {
),
);
firearm_transform.scale =
firearm_transform.scale * firearm_data.scale_factor;
firearm_transform.scale * firearm_data.scale_factor * 3.0;
let scene = gltf.scenes[0].clone();
let firearm_asset_entity = commands