Fixed ak105 size
This commit is contained in:
parent
a447e49036
commit
f4102db009
@ -7,7 +7,7 @@ use bevy_rapier3d::{dynamics::{RigidBody, GravityScale, ExternalImpulse}, geomet
|
|||||||
use crate::{comps::core::{
|
use crate::{comps::core::{
|
||||||
grid::UGrid,
|
grid::UGrid,
|
||||||
items::item::{Item, ItemType, ItemId},
|
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};
|
}, setup::assets::{GltfAssets, GltfAssetType}, utils};
|
||||||
|
|
||||||
#[derive(Component, Clone)]
|
#[derive(Component, Clone)]
|
||||||
@ -81,7 +81,7 @@ impl Item for Ak105GunItem {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
firearm_transform.scale =
|
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 scene = gltf.scenes[0].clone();
|
||||||
let firearm_asset_entity = commands
|
let firearm_asset_entity = commands
|
||||||
|
Loading…
Reference in New Issue
Block a user