[add] StepOFfset

This commit is contained in:
kimnuri
2025-12-12 15:41:53 +09:00
parent 2aefa6a6ca
commit dd5387f680
7 changed files with 11 additions and 7 deletions
@@ -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<CTransform>()->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<CModel>();
_uint iAnimIndex = pModel->Get_AnimIndex();
if (pOwner->Get_AnimInfo(STATEANIM::RUSH_LOOP).first == iAnimIndex) {
@@ -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();
+1 -1
View File
@@ -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();
@@ -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();
@@ -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();
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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();