From dd5387f68076ec79ca3a0d63541d9a053d580b95 Mon Sep 17 00:00:00 2001 From: kimnuri Date: Fri, 12 Dec 2025 15:41:53 +0900 Subject: [PATCH] [add] StepOFfset --- Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp | 6 +++++- Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp | 2 +- Jusin154_Team3D/Client/Private/Goblin.cpp | 2 +- Jusin154_Team3D/Client/Private/Goblin_Mage.cpp | 2 +- Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp | 2 +- Jusin154_Team3D/Client/Private/Player.cpp | 2 +- Jusin154_Team3D/Client/Private/Troll.cpp | 2 +- 7 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp index 4ad79b15f..fa796e600 100644 --- a/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp +++ b/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp @@ -51,7 +51,11 @@ void CCallBack_Troll_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit) class CUnit* pOwner = (CUnit*)m_pController->Get_Owner(); _vector vLook = pOwner->Get_Component()->Get_State(STATE::LOOK); _float fDot = XMVectorGetX(XMVector3Dot(XMLoadFloat3((_float3*)&vDir), vLook)); - if (fDot > cosf(XM_PIDIV4)) { +#ifdef _DEBUG + GUI::Text("DOTDOT %f", fDot); +#endif // _DEBUG + + if (fDot > cosf(XM_PIDIV4) && vWorldPos.y >= XMVectorGetY(pOwnerActorData->pCharacter->Get_Position()) - FLT_EPSILON3) { CModel* pModel = pOwner->Get_Component(); _uint iAnimIndex = pModel->Get_AnimIndex(); if (pOwner->Get_AnimInfo(STATEANIM::RUSH_LOOP).first == iAnimIndex) { diff --git a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp index 30a8de624..505f7360d 100644 --- a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp +++ b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp @@ -129,7 +129,7 @@ HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg) Desc.fContactOffset = 0.001f; Desc.fMaterial = { 0.5f, 0.5f, 0.6f }; Desc.bAutoStepping = { false }; - Desc.fStepOffset = { 0.001f }; + Desc.fStepOffset = { 0.02f }; Desc.fRadius = 0.5f; Desc.fHeight = 1.0f; Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create(); diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp index dd69b5710..9346bf60e 100644 --- a/Jusin154_Team3D/Client/Private/Goblin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin.cpp @@ -329,7 +329,7 @@ HRESULT CGoblin::Ready_Components() Desc.fContactOffset = 0.001f; Desc.fMaterial = { 1.2f, 1.0f, 0.0f }; Desc.bAutoStepping = { false }; - Desc.fStepOffset = { 0.001f }; + Desc.fStepOffset = { 0.02f }; Desc.fRadius = 0.6f; Desc.fHeight = 0.7f; Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Monster_HitReport::Create(); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp index 8c651b2bf..c4f48b804 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp @@ -338,7 +338,7 @@ HRESULT CGoblin_Mage::Ready_Components() Desc.fContactOffset = 0.001f; Desc.fMaterial = { 1.2f, 1.0f, 0.0f }; Desc.bAutoStepping = { false }; - Desc.fStepOffset = { 0.001f }; + Desc.fStepOffset = { 0.02f }; Desc.fRadius = 0.6f; Desc.fHeight = 0.7f; Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Monster_HitReport::Create(); diff --git a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp index e2b24e27e..e89837b23 100644 --- a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp +++ b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp @@ -106,7 +106,7 @@ HRESULT CPhysXEffectHitBox::Ready_Components(void* pArg) Desc.fContactOffset = 0.3f; Desc.fMaterial = { 1.2f, 1.0f, 0.0f }; Desc.bAutoStepping = { false }; - Desc.fStepOffset = { 0.05f }; + Desc.fStepOffset = { 0.02f }; Desc.fRadius = 0.5f; Desc.fHeight = 1.0f; Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_EffectHitBox_HitReport::Create(); diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index f5dc94ce6..f2d97fee8 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -426,7 +426,7 @@ HRESULT CPlayer::Ready_Components() Desc.fContactOffset = 0.001f; Desc.fMaterial = { 1.2f, 1.0f, 0.0f }; Desc.bAutoStepping = { false }; - Desc.fStepOffset = { 0.001f }; + Desc.fStepOffset = { 0.02f }; Desc.fRadius = 0.5f; Desc.fHeight = 0.6f; Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create(); diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index 8f48141dc..5e4244183 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -427,7 +427,7 @@ HRESULT CTroll::Ready_Components() Desc.fContactOffset = 0.001f; Desc.fMaterial = { 1.2f, 1.0f, 0.0f }; Desc.bAutoStepping = { false }; - Desc.fStepOffset = { 0.001f }; + Desc.fStepOffset = { 0.02f }; Desc.fRadius = 1.2f; Desc.fHeight = 1.5f; Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Troll_HitReport::Create();