From 587b9580cdf9ca361804695d9134babe8077f71e Mon Sep 17 00:00:00 2001 From: Ali Sharoz <187120652+alisharoz666@users.noreply.github.com> Date: Thu, 17 Jul 2025 20:32:29 +0500 Subject: [PATCH] Updated speed of dog. and peekabu scene betterment. --- .../Shared/CharacterAnimations/Dog.controller | 69 +++++++++++++++++-- .../CharacterAnimations/Walk (1).fbx.meta | 2 +- Assets/Scenes/Forage Grove.unity | 6 +- Assets/Scenes/PeekAbu.unity | 4 +- .../Demo/Scripts/SimpleCharacterController.cs | 3 +- 5 files changed, 70 insertions(+), 14 deletions(-) diff --git a/Assets/GameWiseAssets/Shared/CharacterAnimations/Dog.controller b/Assets/GameWiseAssets/Shared/CharacterAnimations/Dog.controller index 623d803..98e6681 100644 --- a/Assets/GameWiseAssets/Shared/CharacterAnimations/Dog.controller +++ b/Assets/GameWiseAssets/Shared/CharacterAnimations/Dog.controller @@ -42,10 +42,10 @@ AnimatorStateMachine: m_Position: {x: 590, y: -240, z: 0} - serializedVersion: 1 m_State: {fileID: -2059145168039487407} - m_Position: {x: 536.5523, y: -92.627014, z: 0} + m_Position: {x: 400, y: -140, z: 0} - serializedVersion: 1 m_State: {fileID: -2183268169488036596} - m_Position: {x: 522.30396, y: -410.5799, z: 0} + m_Position: {x: 370, y: -420, z: 0} m_ChildStateMachines: [] m_AnyStateTransitions: [] m_EntryTransitions: [] @@ -73,7 +73,7 @@ AnimatorStateTransition: m_Mute: 0 m_IsExit: 0 serializedVersion: 3 - m_TransitionDuration: 0.25 + m_TransitionDuration: 0.2 m_TransitionOffset: 0 m_ExitTime: 0.9489796 m_HasExitTime: 0 @@ -81,6 +81,31 @@ AnimatorStateTransition: m_InterruptionSource: 0 m_OrderedInterruption: 1 m_CanTransitionToSelf: 1 +--- !u!1101 &-3588606356951769961 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 1 + m_ConditionEvent: Move + m_EventTreshold: 0 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -2183268169488036596} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.7916667 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1101 &-3043491782365716937 AnimatorStateTransition: m_ObjectHideFlags: 1 @@ -114,10 +139,11 @@ AnimatorState: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Walk - m_Speed: 1 + m_Speed: 1.3 m_CycleOffset: 0 m_Transitions: - {fileID: -3043491782365716937} + - {fileID: 447701516945644086} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 @@ -141,10 +167,11 @@ AnimatorState: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Jump - m_Speed: 1 + m_Speed: 1.3 m_CycleOffset: 0 m_Transitions: - {fileID: -1238367727237656801} + - {fileID: -3588606356951769961} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 @@ -183,7 +210,7 @@ AnimatorState: m_MirrorParameterActive: 0 m_CycleOffsetParameterActive: 0 m_TimeParameterActive: 0 - m_Motion: {fileID: 1827226128182048838, guid: e0b2db21228c84a4cb91217a288a80f4, type: 3} + m_Motion: {fileID: 1827226128182048838, guid: d9b7c22761714be48b2186237bb2f838, type: 3} m_Tag: m_SpeedParameter: m_MirrorParameter: @@ -196,7 +223,10 @@ AnimatorStateTransition: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: - m_Conditions: [] + m_Conditions: + - m_ConditionMode: 2 + m_ConditionEvent: Move + m_EventTreshold: 0 m_DstStateMachine: {fileID: 0} m_DstState: {fileID: -1319737940834148616} m_Solo: 0 @@ -277,6 +307,31 @@ AnimatorController: m_IKPass: 0 m_SyncedLayerAffectsTiming: 0 m_Controller: {fileID: 9100000} +--- !u!1101 &447701516945644086 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 1 + m_ConditionEvent: Jump + m_EventTreshold: 0 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -2059145168039487407} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.2 + m_TransitionOffset: 0 + m_ExitTime: 0.73214287 + m_HasExitTime: 0 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1101 &1392166120466489289 AnimatorStateTransition: m_ObjectHideFlags: 1 diff --git a/Assets/GameWiseAssets/Shared/CharacterAnimations/Walk (1).fbx.meta b/Assets/GameWiseAssets/Shared/CharacterAnimations/Walk (1).fbx.meta index be2d088..448659e 100644 --- a/Assets/GameWiseAssets/Shared/CharacterAnimations/Walk (1).fbx.meta +++ b/Assets/GameWiseAssets/Shared/CharacterAnimations/Walk (1).fbx.meta @@ -45,7 +45,7 @@ ModelImporter: loop: 0 hasAdditiveReferencePose: 0 loopTime: 1 - loopBlend: 0 + loopBlend: 1 loopBlendOrientation: 0 loopBlendPositionY: 0 loopBlendPositionXZ: 0 diff --git a/Assets/Scenes/Forage Grove.unity b/Assets/Scenes/Forage Grove.unity index 9f7a5cf..d3f5448 100644 --- a/Assets/Scenes/Forage Grove.unity +++ b/Assets/Scenes/Forage Grove.unity @@ -2463,7 +2463,7 @@ Animator: m_Controller: {fileID: 9100000, guid: 2119dc00d7659ca4ea161014ee6e794e, type: 2} m_CullingMode: 0 m_UpdateMode: 0 - m_ApplyRootMotion: 0 + m_ApplyRootMotion: 1 m_LinearVelocityBlending: 0 m_StabilizeFeet: 0 m_WarningMessage: @@ -3817,9 +3817,9 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 74d295e2a71412d4f9f68727410e7304, type: 3} m_Name: m_EditorClassIdentifier: - moveSpeed: 7 + moveSpeed: 3 jumpSpeed: 12 - rotationSpeed: 900 + rotationSpeed: 450 gravity: -25 capsule: {fileID: 2573877700382832790} mover: {fileID: 2573877700382832788} diff --git a/Assets/Scenes/PeekAbu.unity b/Assets/Scenes/PeekAbu.unity index 37a18c8..cb1ee9a 100644 --- a/Assets/Scenes/PeekAbu.unity +++ b/Assets/Scenes/PeekAbu.unity @@ -500,7 +500,7 @@ PrefabInstance: - target: {fileID: -8095637814363714002, guid: 11c673f83b9cfa040bc62fda6e317641, type: 3} propertyPath: m_Materials.Array.data[0] value: - objectReference: {fileID: 2100000, guid: 375aacccf4f746446bc064927d7ae762, type: 2} + objectReference: {fileID: 2100000, guid: e952b77a298480e41bd9251a349aa764, type: 2} - target: {fileID: -6863161088330762937, guid: 11c673f83b9cfa040bc62fda6e317641, type: 3} propertyPath: m_LocalPosition.x value: -0.09 @@ -520,7 +520,7 @@ PrefabInstance: - target: {fileID: -60982935811075060, guid: 11c673f83b9cfa040bc62fda6e317641, type: 3} propertyPath: m_Materials.Array.data[0] value: - objectReference: {fileID: 2100000, guid: 375aacccf4f746446bc064927d7ae762, type: 2} + objectReference: {fileID: 2100000, guid: e4014f38200bcd8449aa98d2ae44fd6e, type: 2} - target: {fileID: 919132149155446097, guid: 11c673f83b9cfa040bc62fda6e317641, type: 3} propertyPath: m_Name value: PeekaBoo_Scene diff --git a/Assets/Scivolo Character Controller/Demo/Scripts/SimpleCharacterController.cs b/Assets/Scivolo Character Controller/Demo/Scripts/SimpleCharacterController.cs index 80ec522..fbea5e5 100644 --- a/Assets/Scivolo Character Controller/Demo/Scripts/SimpleCharacterController.cs +++ b/Assets/Scivolo Character Controller/Demo/Scripts/SimpleCharacterController.cs @@ -80,7 +80,8 @@ namespace MenteBacata.ScivoloCharacterControllerDemo if (isGrounded && Input.GetButtonDown("Jump")) { - verticalSpeed = jumpSpeed; + zibuAnimator.SetTrigger("Jump"); + //verticalSpeed = jumpSpeed; nextUngroundedTime = -1f; isGrounded = false; }