From 5bb826d5e0ebbcbbec069764fe23b7e9d88b79cc Mon Sep 17 00:00:00 2001 From: krustophski Date: Thu, 18 Jun 2026 08:00:56 +0300 Subject: [PATCH] Fix KAMAZ vehicle physics body and torque --- .../Kamaz/Materials/M_Kamaz_black.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_blue.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_body.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_chrome.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_fabric.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_glass.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_metal.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_orange.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_red.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_rubber.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_white.uasset | 2 +- .../Kamaz/Materials/M_Kamaz_yellow.uasset | 2 +- .../Kamaz/PA_Kamaz_Chassis_Simple.uasset | 3 + .../Vehicles/Kamaz/SK_Kamaz_Chassis.uasset | 4 +- .../Kamaz/KamazPhysicsAssetCommandlet.cpp | 93 +++++++++++++++++++ .../Kamaz/KamazPhysicsAssetCommandlet.h | 13 +++ Source/mrPlow58/Kamaz/mrPlow58KamazCar.cpp | 13 ++- Source/mrPlow58/mrPlow58.Build.cs | 8 ++ Tools/Unreal/assign_kamaz_basic_materials.py | 12 +++ ...ate_kamaz_simple_physics_asset_report.json | 10 ++ ...l_inspect_kamaz_playable_setup_report.json | 22 ++--- 21 files changed, 176 insertions(+), 26 deletions(-) create mode 100644 Content/MrPlow/Vehicles/Kamaz/PA_Kamaz_Chassis_Simple.uasset create mode 100644 Source/mrPlow58/Kamaz/KamazPhysicsAssetCommandlet.cpp create mode 100644 Source/mrPlow58/Kamaz/KamazPhysicsAssetCommandlet.h create mode 100644 VehicleExports/unreal_create_kamaz_simple_physics_asset_report.json diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.uasset index 634b322..0339091 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_black.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9ee8f174fc9b4fd7908872c46c2e017a5df20817e5020feea560b24fc91d5404 +oid sha256:5e889bb6d4e08a822814a4dd2a4ed393f4089f1e0cdea7da7377d4e32c2d8627 size 5705 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_blue.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_blue.uasset index 42f58be..1955cfe 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_blue.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_blue.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3ae08f1d599548a5910933b74a70232861ceb0fc850c18b93d1a7b36c8312190 +oid sha256:d51267759ed7b55a074d90f71eb7d7e247cc77f8e3b54763289a5bc610e8283d size 5700 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.uasset index cd545a6..2394b23 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_body.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:77aecac576eb361205fc47f0bbc12f7e2399072f5b1b5943cf73b208c9a8a4eb +oid sha256:5d10e0dd66708717b64e140293548cd2ac566b4ac3cc419712fde2c9987232f2 size 5700 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.uasset index ee36ee2..74b95a7 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_chrome.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0c968cfda0e4aed2386b394a34411631fb2caad8c6be3e2f891b9fcc8512d66c +oid sha256:4e81b23b584498f5d902d9386961f1001d729619e70c6a5e642962412798cd31 size 5739 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.uasset index f80d55e..97adc50 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_fabric.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:63fb455471e857e34756760360832280035ec22864d0a6380060011a5381e295 +oid sha256:e610c0ba0d41dd08b0cff8be859db9eb3113ddeaac75706e4bf51a63d8a87a0d size 5710 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.uasset index 743eeec..100d8d4 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_glass.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bb9e34612bb1dd3d2c127abd741ac57c532233737405fca17302ba43b60f1164 +oid sha256:d5800ac06be3e4f3112a44e815ddeb12a23763df091b34bf78ad1b2bc87f70c3 size 6282 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.uasset index 11e6edb..8be8f5c 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_metal.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3512dadcfcf65331169080e5b660161848fc64c76d9555855b3d0c67bb6bb669 +oid sha256:d27b0354462162121f942a60a8bc7ab361c2768b02d291709d42ba95f2681d1a size 5734 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.uasset index 877464b..7cf524a 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_orange.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dc472f08b09384013e4b5992dfb900acffbe179d9e56620f26ef1c5f13b8574b +oid sha256:0df9a3b807cabd2bfdef474ddd742c619fb6c5cd4bd64d0920229743325bfaf5 size 5710 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_red.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_red.uasset index 8f9b1b3..9d7caa1 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_red.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_red.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:64bc6f20f473c56295d55c30295367791f44a6f3cc03027eb6db254d29e6bd24 +oid sha256:a6b8f20017b250881dba7901be4fad217574a2a4bab9a6ef7d1727480500fa43 size 5695 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_rubber.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_rubber.uasset index 9b87014..57704c1 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_rubber.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_rubber.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cfa70aa462b3616fcc990e32dc0be8db9eec1d2727b6e1ef1144989706a09d6a +oid sha256:bd3439f614d4f414e435c692b0783c399bdde00ab19977786577a99f854e1668 size 5710 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.uasset index c4714e6..badbbbb 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_white.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b3a492b6aba7b1b3d91207564d5b1af41ecd90e176f649601329b8f276ff8565 +oid sha256:af1dc781de08fa342d79468ea833f5389980701c6a29114fc66be38c30bf21c9 size 5705 diff --git a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.uasset b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.uasset index 7a7c338..08f49ea 100644 --- a/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/Materials/M_Kamaz_yellow.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7c6890f86dd987345eeae1dfb71b7de442c7c0760d218fab635321a07d87a872 +oid sha256:aee3ddb6a8e1d3cbecff779366f2da518d20a91e8f32392fcf7a2d5601d1fa44 size 5710 diff --git a/Content/MrPlow/Vehicles/Kamaz/PA_Kamaz_Chassis_Simple.uasset b/Content/MrPlow/Vehicles/Kamaz/PA_Kamaz_Chassis_Simple.uasset new file mode 100644 index 0000000..f8d2d56 --- /dev/null +++ b/Content/MrPlow/Vehicles/Kamaz/PA_Kamaz_Chassis_Simple.uasset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78f34f7f3f94073c3397a2edbf424c42784ea4765ddb053e86d72d0c767cd0c3 +size 3467 diff --git a/Content/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.uasset b/Content/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.uasset index 8c3b9ce..6837f09 100644 --- a/Content/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.uasset +++ b/Content/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bbd3d48b33f5330890a07f6cbab4cfc8b9d06e5eca7a8ab38abd9bf38bccd5e6 -size 121290853 +oid sha256:43867d5153aa8434adfb35a81a71ee20412ee175ab8ff659aff3a408311bf2ca +size 121291178 diff --git a/Source/mrPlow58/Kamaz/KamazPhysicsAssetCommandlet.cpp b/Source/mrPlow58/Kamaz/KamazPhysicsAssetCommandlet.cpp new file mode 100644 index 0000000..939ffb5 --- /dev/null +++ b/Source/mrPlow58/Kamaz/KamazPhysicsAssetCommandlet.cpp @@ -0,0 +1,93 @@ +#include "KamazPhysicsAssetCommandlet.h" + +#include "AssetRegistry/AssetRegistryModule.h" +#include "Engine/SkeletalMesh.h" +#include "FileHelpers.h" +#include "Misc/FileHelper.h" +#include "Misc/Paths.h" +#include "PhysicsEngine/AggregateGeom.h" +#include "PhysicsEngine/BoxElem.h" +#include "PhysicsEngine/PhysicsAsset.h" +#include "PhysicsEngine/SkeletalBodySetup.h" +#include "UObject/Package.h" + +int32 UKamazPhysicsAssetCommandlet::Main(const FString& Params) +{ + const TCHAR* MeshPath = TEXT("/Game/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.SK_Kamaz_Chassis"); + const TCHAR* PackageName = TEXT("/Game/MrPlow/Vehicles/Kamaz/PA_Kamaz_Chassis_Simple"); + const TCHAR* AssetName = TEXT("PA_Kamaz_Chassis_Simple"); + + USkeletalMesh* Mesh = LoadObject(nullptr, MeshPath); + if (!Mesh) + { + UE_LOG(LogTemp, Error, TEXT("Missing skeletal mesh: %s"), MeshPath); + return 1; + } + + UPackage* Package = CreatePackage(PackageName); + UPhysicsAsset* PhysicsAsset = LoadObject(nullptr, TEXT("/Game/MrPlow/Vehicles/Kamaz/PA_Kamaz_Chassis_Simple.PA_Kamaz_Chassis_Simple")); + if (!PhysicsAsset) + { + PhysicsAsset = NewObject(Package, AssetName, RF_Public | RF_Standalone | RF_Transactional); + FAssetRegistryModule::AssetCreated(PhysicsAsset); + } + + PhysicsAsset->Modify(); + PhysicsAsset->PreviewSkeletalMesh = Mesh; + PhysicsAsset->SkeletalBodySetups.Empty(); + PhysicsAsset->ConstraintSetup.Empty(); + PhysicsAsset->BoundsBodies.Empty(); + + USkeletalBodySetup* BodySetup = NewObject(PhysicsAsset, TEXT("Body"), RF_Transactional); + BodySetup->BoneName = FName(TEXT("Body")); + BodySetup->PhysicsType = EPhysicsType::PhysType_Default; + BodySetup->CollisionTraceFlag = CTF_UseSimpleAsComplex; + BodySetup->CollisionReponse = EBodyCollisionResponse::BodyCollision_Enabled; + BodySetup->bConsiderForBounds = true; + BodySetup->DefaultInstance.SetCollisionProfileName(FName(TEXT("Vehicle"))); + BodySetup->AggGeom.BoxElems.Reset(); + + const FBoxSphereBounds Bounds = Mesh->GetBounds(); + FKBoxElem ChassisBox; + ChassisBox.Center = FVector(Bounds.Origin.X - 20.0, 0.0, 135.0); + ChassisBox.Rotation = FRotator::ZeroRotator; + ChassisBox.X = FMath::Clamp(Bounds.BoxExtent.X * 1.35f, 520.0f, 720.0f); + ChassisBox.Y = FMath::Clamp(Bounds.BoxExtent.Y * 1.45f, 190.0f, 260.0f); + ChassisBox.Z = 130.0f; + BodySetup->AggGeom.BoxElems.Add(ChassisBox); + BodySetup->InvalidatePhysicsData(); + BodySetup->CreatePhysicsMeshes(); + + PhysicsAsset->SkeletalBodySetups.Add(BodySetup); + PhysicsAsset->BoundsBodies.Add(0); + PhysicsAsset->UpdateBodySetupIndexMap(); + PhysicsAsset->UpdateBoundsBodiesArray(); + PhysicsAsset->MarkPackageDirty(); + + Mesh->Modify(); + Mesh->SetPhysicsAsset(PhysicsAsset); + Mesh->MarkPackageDirty(); + + const bool bSaved = UEditorLoadingAndSavingUtils::SavePackages({ PhysicsAsset->GetPackage(), Mesh->GetPackage() }, false); + + const FString Report = FString::Printf( + TEXT("{\n \"mesh\": \"%s\",\n \"physicsAsset\": \"%s\",\n \"bodyCount\": %d,\n \"constraintCount\": %d,\n \"boxCenter\": {\"x\": %.2f, \"y\": %.2f, \"z\": %.2f},\n \"boxSize\": {\"x\": %.2f, \"y\": %.2f, \"z\": %.2f},\n \"saved\": %s,\n \"ok\": %s\n}\n"), + *Mesh->GetPathName(), + *PhysicsAsset->GetPathName(), + PhysicsAsset->SkeletalBodySetups.Num(), + PhysicsAsset->ConstraintSetup.Num(), + ChassisBox.Center.X, + ChassisBox.Center.Y, + ChassisBox.Center.Z, + ChassisBox.X, + ChassisBox.Y, + ChassisBox.Z, + bSaved ? TEXT("true") : TEXT("false"), + (bSaved && Mesh->GetPhysicsAsset() == PhysicsAsset && PhysicsAsset->SkeletalBodySetups.Num() == 1) ? TEXT("true") : TEXT("false")); + + const FString ReportPath = FPaths::Combine(FPaths::ProjectDir(), TEXT("VehicleExports"), TEXT("unreal_create_kamaz_simple_physics_asset_report.json")); + FFileHelper::SaveStringToFile(Report, *ReportPath); + + UE_LOG(LogTemp, Display, TEXT("%s"), *Report); + return (bSaved && Mesh->GetPhysicsAsset() == PhysicsAsset && PhysicsAsset->SkeletalBodySetups.Num() == 1) ? 0 : 2; +} diff --git a/Source/mrPlow58/Kamaz/KamazPhysicsAssetCommandlet.h b/Source/mrPlow58/Kamaz/KamazPhysicsAssetCommandlet.h new file mode 100644 index 0000000..c0c303b --- /dev/null +++ b/Source/mrPlow58/Kamaz/KamazPhysicsAssetCommandlet.h @@ -0,0 +1,13 @@ +#pragma once + +#include "Commandlets/Commandlet.h" +#include "KamazPhysicsAssetCommandlet.generated.h" + +UCLASS() +class UKamazPhysicsAssetCommandlet : public UCommandlet +{ + GENERATED_BODY() + +public: + virtual int32 Main(const FString& Params) override; +}; diff --git a/Source/mrPlow58/Kamaz/mrPlow58KamazCar.cpp b/Source/mrPlow58/Kamaz/mrPlow58KamazCar.cpp index 3f85ab0..7574caf 100644 --- a/Source/mrPlow58/Kamaz/mrPlow58KamazCar.cpp +++ b/Source/mrPlow58/Kamaz/mrPlow58KamazCar.cpp @@ -6,6 +6,7 @@ #include "ChaosWheeledVehicleMovementComponent.h" #include "Components/SkeletalMeshComponent.h" #include "GameFramework/SpringArmComponent.h" +#include "PhysicsEngine/PhysicsAsset.h" #include "UObject/ConstructorHelpers.h" namespace @@ -26,7 +27,11 @@ AmrPlow58KamazCar::AmrPlow58KamazCar() GetMesh()->SetSkeletalMesh(KamazMesh.Object); } - GetMesh()->SetPhysicsAsset(nullptr); + static ConstructorHelpers::FObjectFinder KamazPhysicsAsset(TEXT("/Game/MrPlow/Vehicles/Kamaz/PA_Kamaz_Chassis_Simple.PA_Kamaz_Chassis_Simple")); + if (KamazPhysicsAsset.Succeeded()) + { + GetMesh()->SetPhysicsAsset(KamazPhysicsAsset.Object); + } GetMesh()->SetCollisionProfileName(FName("Vehicle")); GetFrontSpringArm()->SetRelativeLocation(FVector(220.0f, -55.0f, 285.0f)); @@ -62,6 +67,12 @@ AmrPlow58KamazCar::AmrPlow58KamazCar() Movement->EngineSetup.EngineBrakeEffect = 0.25f; Movement->EngineSetup.EngineRevUpMOI = 12.0f; Movement->EngineSetup.EngineRevDownRate = 280.0f; + Movement->EngineSetup.TorqueCurve.GetRichCurve()->Reset(); + Movement->EngineSetup.TorqueCurve.GetRichCurve()->AddKey(650.0f, 0.45f); + Movement->EngineSetup.TorqueCurve.GetRichCurve()->AddKey(1100.0f, 0.82f); + Movement->EngineSetup.TorqueCurve.GetRichCurve()->AddKey(1400.0f, 1.0f); + Movement->EngineSetup.TorqueCurve.GetRichCurve()->AddKey(1900.0f, 0.96f); + Movement->EngineSetup.TorqueCurve.GetRichCurve()->AddKey(2600.0f, 0.62f); Movement->DifferentialSetup.DifferentialType = EVehicleDifferential::RearWheelDrive; Movement->DifferentialSetup.FrontRearSplit = 0.0f; diff --git a/Source/mrPlow58/mrPlow58.Build.cs b/Source/mrPlow58/mrPlow58.Build.cs index ca77044..e3ef288 100644 --- a/Source/mrPlow58/mrPlow58.Build.cs +++ b/Source/mrPlow58/mrPlow58.Build.cs @@ -33,6 +33,14 @@ public class mrPlow58 : ModuleRules PrivateDependencyModuleNames.AddRange(new string[] { }); + if (Target.bBuildEditor) + { + PrivateDependencyModuleNames.AddRange(new string[] { + "UnrealEd", + "AssetRegistry" + }); + } + // Uncomment if you are using Slate UI // PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" }); diff --git a/Tools/Unreal/assign_kamaz_basic_materials.py b/Tools/Unreal/assign_kamaz_basic_materials.py index 6f249bd..c9c5122 100644 --- a/Tools/Unreal/assign_kamaz_basic_materials.py +++ b/Tools/Unreal/assign_kamaz_basic_materials.py @@ -70,6 +70,11 @@ def load_or_create_material(profile_name, profile): if not material: raise RuntimeError(f"Failed to create material {asset_path}") + try: + material.set_editor_property("b_used_with_skeletal_mesh", True) + except Exception: + pass + color = unreal.MaterialEditingLibrary.create_material_expression(material, unreal.MaterialExpressionConstant4Vector, -400, 0) color.set_editor_property("constant", unreal.LinearColor(*profile["color"])) unreal.MaterialEditingLibrary.connect_material_property(color, "", unreal.MaterialProperty.MP_BASE_COLOR) @@ -103,6 +108,13 @@ def main(): name: load_or_create_material(name, profile) for name, profile in MATERIAL_PROFILES.items() } + for material in materials_by_profile.values(): + try: + material.set_editor_property("b_used_with_skeletal_mesh", True) + except Exception: + pass + unreal.MaterialEditingLibrary.recompile_material(material) + unreal.EditorAssetLibrary.save_loaded_asset(material) assignments = [] slots = mesh.get_editor_property("materials") diff --git a/VehicleExports/unreal_create_kamaz_simple_physics_asset_report.json b/VehicleExports/unreal_create_kamaz_simple_physics_asset_report.json new file mode 100644 index 0000000..81eb374 --- /dev/null +++ b/VehicleExports/unreal_create_kamaz_simple_physics_asset_report.json @@ -0,0 +1,10 @@ +{ + "mesh": "/Game/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.SK_Kamaz_Chassis", + "physicsAsset": "/Game/MrPlow/Vehicles/Kamaz/PA_Kamaz_Chassis_Simple.PA_Kamaz_Chassis_Simple", + "bodyCount": 1, + "constraintCount": 0, + "boxCenter": {"x": -52.97, "y": 0.00, "z": 135.00}, + "boxSize": {"x": 520.00, "y": 212.22, "z": 130.00}, + "saved": true, + "ok": true +} diff --git a/VehicleExports/unreal_inspect_kamaz_playable_setup_report.json b/VehicleExports/unreal_inspect_kamaz_playable_setup_report.json index 064c0d5..03a1c66 100644 --- a/VehicleExports/unreal_inspect_kamaz_playable_setup_report.json +++ b/VehicleExports/unreal_inspect_kamaz_playable_setup_report.json @@ -3,59 +3,59 @@ "defaultGameMode": "/Game/MrPlow/Blueprints/BP_KamazGameMode.BP_KamazGameMode_C", "pawnClass": "/Game/MrPlow/Vehicles/Kamaz/BP_Kamaz_Pawn.BP_Kamaz_Pawn_C", "skeletalMesh": "/Game/MrPlow/Vehicles/Kamaz/SK_Kamaz_Chassis.SK_Kamaz_Chassis", - "physicsAsset": null, + "physicsAsset": "/Game/MrPlow/Vehicles/Kamaz/PA_Kamaz_Chassis_Simple.PA_Kamaz_Chassis_Simple", "movementMassKg": 8500.0, "wheelSetupCount": 10, "wheelSetups": [ { "bone": "Phys_Wheel_FL", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelFront", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_FR", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelFront", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_ML1", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_ML2", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_MR1", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_MR2", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_RL1", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_RL2", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_RR1", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" }, { "bone": "Phys_Wheel_RR2", "wheelClass": "/Script/mrPlow58.mrPlow58KamazWheelRear", - "offset": "" + "offset": "" } ], "boneNames": [