[add] Goblin Dead
[add] Troll Stun [add] GoblinStat [add] Goblin DeadDisolve
This commit is contained in:
@@ -160,6 +160,7 @@ call Update_Resources.bat
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\CallBack_Troll_Behavior.h" />
|
||||
<ClInclude Include="..\Public\CameraLockOn.h" />
|
||||
<ClInclude Include="..\Public\Current_Slot_Number.h" />
|
||||
<ClInclude Include="..\Public\Current_Spell_Slot.h" />
|
||||
@@ -306,6 +307,7 @@ call Update_Resources.bat
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Broom_States.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_Troll_Behavior.cpp" />
|
||||
<ClCompile Include="..\Private\CameraLockOn.cpp" />
|
||||
<ClCompile Include="..\Private\Current_Slot_Number.cpp" />
|
||||
<ClCompile Include="..\Private\Current_Spell_Slot.cpp" />
|
||||
|
||||
@@ -85,24 +85,6 @@
|
||||
<ClInclude Include="..\Public\Dummy_PhysXPlayable.h">
|
||||
<Filter>02.GameObjects\PhysX</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_EffectHitBox_Behavior.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_Monster_Behavior.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_Playable_Behavior.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_Playable_HitReport.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_EffectHitBox_HitReport.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_Monster_HitReport.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Root.h">
|
||||
<Filter>04.Mechanic\State</Filter>
|
||||
</ClInclude>
|
||||
@@ -424,13 +406,34 @@
|
||||
<ClInclude Include="..\Public\Goblin_Mage.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Mage</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Spector.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_Playable_Behavior.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Player</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_EffectHitBox_Behavior.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Hitbox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_Monster_Behavior.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Monster</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_EffectHitBox_HitReport.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Hitbox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_Monster_HitReport.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Monster</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_Playable_HitReport.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Player</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CallBack_Troll_Behavior.h">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -909,6 +912,27 @@
|
||||
<Filter Include="02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector">
|
||||
<UniqueIdentifier>{234b3dd8-4ec9-4e81-ac7f-4eacb8f53780}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\Behavior\Player">
|
||||
<UniqueIdentifier>{3f4bde42-c5a0-4c7a-8dde-23e0725534c9}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\Behavior\Hitbox">
|
||||
<UniqueIdentifier>{085dcbe3-d24e-4f08-b1b5-562f8ea2ad88}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\Behavior\Monster">
|
||||
<UniqueIdentifier>{dde4f316-300a-44e2-b0ed-6b215434f672}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\HitReport\Hitbox">
|
||||
<UniqueIdentifier>{e8092e33-cd57-4c35-81e4-971d12dbfc3b}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\HitReport\Monster">
|
||||
<UniqueIdentifier>{df2cce1e-7ac5-404d-922a-7f60ca0be9a4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\HitReport\Player">
|
||||
<UniqueIdentifier>{a79cbab1-6a8a-4d88-8102-bc3462a4ffb0}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll">
|
||||
<UniqueIdentifier>{e12337a6-7563-4615-a8d2-a2e2e1ba1ca8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -980,24 +1004,6 @@
|
||||
<ClCompile Include="..\Private\Dummy_PhysXPlayable.cpp">
|
||||
<Filter>02.GameObjects\PhysX</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_Monster_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_Playable_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_EffectHitBox_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_EffectHitBox_HitReport.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_Monster_HitReport.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_Playable_HitReport.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Root.cpp">
|
||||
<Filter>04.Mechanic\State</Filter>
|
||||
</ClCompile>
|
||||
@@ -1319,15 +1325,9 @@
|
||||
<ClCompile Include="..\Private\Goblin_Mage.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Mage</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_Mage_States.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Mage</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Enemy_HpBar.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_HpBar</Filter>
|
||||
</ClCompile>
|
||||
@@ -1342,6 +1342,33 @@
|
||||
<ClCompile Include="..\Private\Goblin_Spector.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_Playable_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Player</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_EffectHitBox_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Hitbox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_Monster_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Monster</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_EffectHitBox_HitReport.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Hitbox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_Monster_HitReport.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Monster</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_Playable_HitReport.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Player</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CallBack_Troll_Behavior.cpp">
|
||||
<Filter>02.GameObjects\PhysX\CallBack\HitReport\Monster\Troll</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
|
||||
@@ -0,0 +1,169 @@
|
||||
#include "pch.h"
|
||||
#include "CallBack_Troll_Behavior.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Character_Controller.h"
|
||||
#include "RigidBody_Dynamic.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
CCallBack_Troll_Behavior::CCallBack_Troll_Behavior()
|
||||
{
|
||||
}
|
||||
|
||||
CCallBack_Troll_Behavior::~CCallBack_Troll_Behavior()
|
||||
{
|
||||
}
|
||||
|
||||
void CCallBack_Troll_Behavior::onShapeHit(const PSX::PxControllerShapeHit& hit)
|
||||
{
|
||||
PSX::PxController* pController = hit.controller;
|
||||
PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
|
||||
PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
|
||||
PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
|
||||
_float fLength = hit.length; // 시도한 move 길이
|
||||
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
|
||||
if (nullptr != pController && nullptr != pActor) {
|
||||
PhsXUserData* pTargetActorData = static_cast<PhsXUserData*>(pActor->userData);
|
||||
PhsXUserData* pOwnerActorData = static_cast<PhsXUserData*>(pController->getActor()->userData);
|
||||
if (nullptr == pTargetActorData) { // missing user data
|
||||
return;
|
||||
}
|
||||
|
||||
switch (pTargetActorData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_STATIC:
|
||||
{
|
||||
switch ((PXOBJECT)pTargetActorData->iSubKind)
|
||||
{
|
||||
case PXOBJECT::TERRAIN:
|
||||
class CGameObject* pOwner = 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)) {
|
||||
CModel* pModel = pOwner->Get_Component<CModel>();
|
||||
_uint iAnimIndex = pModel->Get_AnimIndex();
|
||||
if (STATEANIM::RUSH_LOOP == iAnimIndex) {
|
||||
CFSM* pFSM = pOwner->Get_Component<CFSM>();
|
||||
pFSM->Change_State(FSMSTATE::STOP);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case PHYSX_KIND::BODY_DYNAMIC:
|
||||
{
|
||||
switch (pTargetActorData->iSubKind)
|
||||
{
|
||||
case 0:
|
||||
m_pController->ConvertToDO(*m_pPartDynamicBody);
|
||||
m_pPartDynamicBody->Add_Force(XMVectorSet(vDir.x, vDir.y, vDir.z, 0.f) * fLength * 100.f, PSX::PxForceMode::eIMPULSE);
|
||||
break;
|
||||
default:
|
||||
{
|
||||
}
|
||||
break;
|
||||
}
|
||||
} break;
|
||||
case PHYSX_KIND::CCTActor:
|
||||
assert(false);
|
||||
break;
|
||||
case PHYSX_KIND::OBSTACLEActor:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CCallBack_Troll_Behavior::onControllerHit(const PSX::PxControllersHit& hit)
|
||||
{
|
||||
PSX::PxController* pController = hit.controller;
|
||||
PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
|
||||
PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
|
||||
PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
|
||||
_float fLength = hit.length; // 시도한 move 길이
|
||||
|
||||
PSX::PxController* pOtherController = hit.other; // 다른 컨트롤러
|
||||
PSX::PxActor* pActor = pOtherController->getActor();
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = {};
|
||||
|
||||
if (nullptr != pController && nullptr != pOtherController) {
|
||||
PhsXUserData* pTargetActorData = static_cast<PhsXUserData*>(pActor->userData);
|
||||
PhsXUserData* pOwnerActorData = static_cast<PhsXUserData*>(pController->getActor()->userData);
|
||||
assert(nullptr != pTargetActorData); // missing user data
|
||||
|
||||
switch (pTargetActorData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_STATIC:
|
||||
assert(false);
|
||||
break;
|
||||
case PHYSX_KIND::BODY_DYNAMIC:
|
||||
assert(false);
|
||||
break;
|
||||
case PHYSX_KIND::CCTActor:
|
||||
switch (pTargetActorData->iSubKind)
|
||||
{
|
||||
case ENUM_CLASS(PXOBJECT::PLAYER):
|
||||
break;
|
||||
default:
|
||||
{
|
||||
PSX::PxRigidDynamic* pDynamic = static_cast<PSX::PxRigidDynamic*>(pActor);
|
||||
pDynamic->addForce(vDir * fLength * 100000.f, PSX::PxForceMode::eIMPULSE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case PHYSX_KIND::OBSTACLEActor:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CCallBack_Troll_Behavior::onObstacleHit(const PSX::PxControllerObstacleHit& hit)
|
||||
{
|
||||
PSX::PxController* pController = hit.controller;
|
||||
PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점
|
||||
PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말
|
||||
PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
|
||||
_float fLength = hit.length; // 시도한 move 길이
|
||||
|
||||
const void* pOtherController = hit.userData; // 장애물
|
||||
|
||||
//switch (pOtherController.member)
|
||||
//{
|
||||
//default:
|
||||
// break;
|
||||
//}
|
||||
}
|
||||
|
||||
HRESULT CCallBack_Troll_Behavior::Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject)
|
||||
{
|
||||
m_pController = pController;
|
||||
m_pPartDynamicBody = pPartDynamicObject;
|
||||
m_pGameInstance = CGameInstance::GetInstance();
|
||||
SAFE_ADDREF(m_pController);
|
||||
SAFE_ADDREF(m_pPartDynamicBody);
|
||||
SAFE_ADDREF(m_pGameInstance);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCallBack_Troll_Behavior::Finalize()
|
||||
{
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
SAFE_RELEASE(m_pPartDynamicBody);
|
||||
SAFE_RELEASE(m_pController);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CCallBack_Troll_Behavior* CCallBack_Troll_Behavior::Create()
|
||||
{
|
||||
return new CCallBack_Troll_Behavior();
|
||||
}
|
||||
@@ -124,6 +124,18 @@ HRESULT CEffectPool::Bind_ShaderResources()
|
||||
|
||||
HRESULT CEffectPool::Ready_Effect()
|
||||
{
|
||||
#ifdef 기무리
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
CNomalJap* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CNomalJap>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
#endif // 기무리
|
||||
|
||||
|
||||
#ifndef 기무리
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
CNomalJap* pEffect = nullptr;
|
||||
|
||||
@@ -368,6 +368,7 @@ void CEffect_Container::SweepTarget(_vector StartPos, _vector EndPos, _float fRa
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
tagCollInfo.pObject = m_pOwner->Get_Owner();
|
||||
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
#include "Goblin.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Layer.h"
|
||||
#include "Player.h"
|
||||
#include "Goblin_Dagger.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
@@ -45,23 +48,23 @@ HRESULT CGoblin::Initialize(void* pArg)
|
||||
|
||||
Add_FSM();
|
||||
|
||||
Set_Anim();
|
||||
Set_Anim();
|
||||
|
||||
{
|
||||
CFSM::FSM_DESC FSMDesc{};
|
||||
FSMDesc.pStates = &m_States;
|
||||
FSMDesc.pStateMask = &m_iStateMask;
|
||||
{
|
||||
CFSM::FSM_DESC FSMDesc{};
|
||||
FSMDesc.pStates = &m_States;
|
||||
FSMDesc.pStateMask = &m_iStateMask;
|
||||
|
||||
m_pFSM->Bind_States(FSMDesc);
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
m_pFSM->Bind_States(FSMDesc);
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(-40.f, 5.f, -20.f, 1.f));
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(-40.f, 5.f, -20.f, 1.f));
|
||||
|
||||
return S_OK;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin::Priority_Update(_float fTimeDelta)
|
||||
@@ -85,7 +88,7 @@ void CGoblin::Update(_float fTimeDelta)
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
m_vStunTimer.x = 0.f;
|
||||
}
|
||||
else {
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (0.f == m_vStunTimer.x) {
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
@@ -115,12 +118,12 @@ void CGoblin::Late_Update(_float fTimeDelta)
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
|
||||
}
|
||||
else {
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
m_pTransformCom->Set_WorldMatrix(m_pRigidBody->Get_FootPositionPxTransform());
|
||||
}
|
||||
|
||||
|
||||
m_pTransformCom->LookAt_Horizontal(XMLoadFloat4(&m_vTargetPos));
|
||||
if (true == m_bLookAt) {
|
||||
m_pTransformCom->LookAt_Horizontal(XMLoadFloat4(&m_vTargetPos));
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
|
||||
@@ -139,6 +142,9 @@ HRESULT CGoblin::Render()
|
||||
if (true == m_bDrawOutLine) {
|
||||
iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE);
|
||||
}
|
||||
if (FAILED(Render_DeadDisolve())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
||||
@@ -168,12 +174,20 @@ HRESULT CGoblin::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else {
|
||||
else if (true == m_pRigidBody->IsActive()){
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
if (0.f < m_fDeadRatio) {
|
||||
_bool bDisolve = false;
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -238,11 +252,15 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_eHitSpell = STATEANIM::TUMBLE2;
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
{
|
||||
m_eHitSpell = STATEANIM::HIT_LEVIOSO;
|
||||
if (true == Get_Damage(60.f)) {
|
||||
_float fSkillRatio = m_pInfoInstance->Get_Spell_Info(ENUM_CLASS(SKILL_TYPE::JAP)).fSpell_Damage;
|
||||
_float fCoefficient = CollisionDesc->pObject->Get_Component<CStat>()->Get_Stat(ENUM_CLASS(STAT::MAGIC));
|
||||
if (true == Get_Damage(fSkillRatio * fCoefficient)) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
return;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
|
||||
m_eHitSpell = STATEANIM::HIT_LEVIOSO;
|
||||
@@ -337,8 +355,6 @@ HRESULT CGoblin::Ready_Parts()
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("Goblin_Particle",g_iStaticLevel, &m_pGoblin_Particle, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "Layer.h"
|
||||
#include "EffectPool.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Goblin_Dagger.h"
|
||||
#include "Effect_Container.h"
|
||||
#include "Wand.h"
|
||||
@@ -89,7 +90,7 @@ void CGoblin_Mage::Update(_float fTimeDelta)
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
m_vStunTimer.x = 0.f;
|
||||
}
|
||||
else {
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (0.f == m_vStunTimer.x) {
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
@@ -106,10 +107,9 @@ void CGoblin_Mage::Update(_float fTimeDelta)
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
for (_uint i = 0; i < ENUM_CLASS(GOBLIN_SKILL::END); i++)
|
||||
for (_uint i = 0; i < ENUM_CLASS(GOBLIN_SKILL::END); i++){
|
||||
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -119,10 +119,12 @@ void CGoblin_Mage::Late_Update(_float fTimeDelta)
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
|
||||
}
|
||||
else {
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
m_pTransformCom->Set_WorldMatrix(m_pRigidBody->Get_FootPositionPxTransform());
|
||||
}
|
||||
|
||||
if (true == m_bLookAt) {
|
||||
m_pTransformCom->LookAt_Horizontal(XMLoadFloat4(&m_vTargetPos));
|
||||
}
|
||||
|
||||
m_pTransformCom->LookAt_Horizontal(XMLoadFloat4(&m_vTargetPos));
|
||||
|
||||
@@ -173,12 +175,20 @@ HRESULT CGoblin_Mage::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else {
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
if (0.f < m_fDeadRatio) {
|
||||
_bool bDisolve = false;
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -217,10 +227,6 @@ HRESULT CGoblin_Mage::Render_Shadow()
|
||||
void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
_vector vWorldPos = {}; // 접촉지점
|
||||
_vector vWorldNomal = {}; // 접촉노말
|
||||
_vector vHitDir = {}; // 시도한 move 방향
|
||||
_float fLength = {}; // 작용된 힘
|
||||
|
||||
_uint iSkillType = dynamic_cast<CEffect_Container*>(pOther)->Get_SkillType();
|
||||
switch (iSkillType)
|
||||
@@ -232,8 +238,16 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_eHitSpell = STATEANIM::TUMBLE2;
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
{
|
||||
m_eHitSpell = STATEANIM::HIT_LEVIOSO;
|
||||
break;
|
||||
_float fSkillRatio = m_pInfoInstance->Get_Spell_Info(ENUM_CLASS(SKILL_TYPE::JAP)).fSpell_Damage;
|
||||
_float fCoefficient = CollisionDesc->pObject->Get_Component<CStat>()->Get_Stat(ENUM_CLASS(STAT::MAGIC));
|
||||
if (true == Get_Damage(fSkillRatio * fCoefficient)) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
return;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
|
||||
m_eHitSpell = STATEANIM::HIT_LEVIOSO;
|
||||
break;
|
||||
@@ -241,9 +255,9 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_eHitSpell = STATEANIM::KNOCKDOWN_FWD;
|
||||
break;
|
||||
}
|
||||
if (!m_pFSM->IsEnable(FSMSTATE::BLINK))
|
||||
if (!m_pFSM->IsEnable(FSMSTATE::BLINK)){
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void CGoblin_Mage::OnHit(CGameObject* pOther, CGameObject* pCaller)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
#include "State_Dead.h"
|
||||
#include "State_Move.h"
|
||||
#include "State_Combat.h"
|
||||
#include "State_Spell.h"
|
||||
@@ -323,6 +324,67 @@ void CGoblin_Mage::Behavior_HitExit()
|
||||
m_pFSM->Disable_State(FSMSTATE::HIT);
|
||||
}
|
||||
|
||||
void CGoblin_Mage::Behavior_DeadEnter()
|
||||
{
|
||||
m_bLookAt = false;
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::DEAD);
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
m_pRigidBody->SetActive(false);
|
||||
m_pCharacter_Controller->SetActive(false);
|
||||
|
||||
_bool bStrongerKnockDown = { false };
|
||||
|
||||
switch (m_eHitSpell)
|
||||
{
|
||||
case STATEANIM::KNOCKDOWN_FWD:
|
||||
bStrongerKnockDown = true;
|
||||
break;
|
||||
case STATEANIM::TUMBLE2:
|
||||
bStrongerKnockDown = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
_float fabsRadius = fabsf(m_fHitRadius);
|
||||
_uint iState = { UINT_MAX };
|
||||
|
||||
if (fabsRadius > 135.f) {
|
||||
iState = STATEANIM::DEAD_FWD;
|
||||
}
|
||||
else if (fabsRadius < 45.f) {
|
||||
iState = STATEANIM::DEAD_BWD;
|
||||
}
|
||||
else {
|
||||
if (m_fHitRadius < 0.f) {
|
||||
iState = STATEANIM::DEAD_L;
|
||||
}
|
||||
else {
|
||||
iState = STATEANIM::DEAD_R;
|
||||
}
|
||||
}
|
||||
pairAnimInfo = m_Animation[iState + bStrongerKnockDown];
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Mage::Behavior_DeadExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (FLT_EPSILON > m_pModelCom->Get_CurrentTrackProgressRatio()) {
|
||||
return E_PENDING;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Mage::Behavior_DeadExit()
|
||||
{
|
||||
m_bDead = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CGoblin_Mage::Add_FSM()
|
||||
{
|
||||
@@ -395,7 +457,22 @@ void CGoblin_Mage::Add_FSM()
|
||||
|
||||
#pragma endregion
|
||||
#pragma region Behavior_Combat_Focus
|
||||
|
||||
{
|
||||
CState_Dead::STATE_DEAD_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_DeadEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_DeadExit(); };
|
||||
Desc.funcLateUpdate = [this](_float fDeadRatio) {
|
||||
m_fDeadRatio = fDeadRatio;
|
||||
if (m_fDeadRatio > 1.f) {
|
||||
m_bDead = true;
|
||||
}
|
||||
};
|
||||
Desc.vDeadTimer.x = FLT_EPSILON5;
|
||||
Desc.vDeadTimer.y = 2.f;
|
||||
m_States.emplace(FSMSTATE::DEAD, CState_Dead::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Hit
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "pch.h"
|
||||
#include "Goblin.h"
|
||||
|
||||
#include "InfoInstance.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Player.h"
|
||||
#include "Goblin_Dagger.h"
|
||||
@@ -388,6 +388,11 @@ void CGoblin::Behavior_DeadEnter()
|
||||
m_bLookAt = false;
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::DEAD);
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
m_pRigidBody->SetActive(false);
|
||||
m_pCharacter_Controller->SetActive(false);
|
||||
|
||||
_bool bStrongerKnockDown = { false };
|
||||
|
||||
@@ -407,17 +412,17 @@ void CGoblin::Behavior_DeadEnter()
|
||||
_uint iState = { UINT_MAX };
|
||||
|
||||
if (fabsRadius > 135.f) {
|
||||
iState = STATEANIM::DEAD_BWD;
|
||||
iState = STATEANIM::DEAD_FWD;
|
||||
}
|
||||
else if (fabsRadius < 45.f) {
|
||||
iState = STATEANIM::DEAD_FWD;
|
||||
iState = STATEANIM::DEAD_BWD;
|
||||
}
|
||||
else {
|
||||
if (m_fHitRadius < 0.f) {
|
||||
iState = STATEANIM::DEAD_R;
|
||||
iState = STATEANIM::DEAD_L;
|
||||
}
|
||||
else {
|
||||
iState = STATEANIM::DEAD_L;
|
||||
iState = STATEANIM::DEAD_R;
|
||||
}
|
||||
}
|
||||
pairAnimInfo = m_Animation[iState + bStrongerKnockDown];
|
||||
@@ -427,8 +432,8 @@ void CGoblin::Behavior_DeadEnter()
|
||||
|
||||
HRESULT CGoblin::Behavior_DeadExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (true == m_pModelCom->IsFinishedAnim()) {
|
||||
return E_FAIL;
|
||||
if ( FLT_EPSILON > m_pModelCom->Get_CurrentTrackProgressRatio()) {
|
||||
return E_PENDING;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
@@ -523,6 +528,14 @@ void CGoblin::Add_FSM()
|
||||
Desc.funcEnterEvent = [this]() { Behavior_DeadEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_DeadExit(); };
|
||||
Desc.funcLateUpdate = [this](_float fDeadRatio) {
|
||||
m_fDeadRatio = fDeadRatio;
|
||||
if (m_fDeadRatio > 1.f) {
|
||||
m_bDead = true;
|
||||
}
|
||||
};
|
||||
Desc.vDeadTimer.x = FLT_EPSILON5;
|
||||
Desc.vDeadTimer.y = 2.f;
|
||||
m_States.emplace(FSMSTATE::DEAD, CState_Dead::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
@@ -376,7 +376,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
{
|
||||
for (_uint i = 0; i < 1; ++i)
|
||||
for (_uint i = 0; i < 5; ++i)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -818,8 +818,12 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
#pragma region Global_SRV
|
||||
{
|
||||
m_pGameInstance->Load_GlobalSRV(TEXT("GLOBAL_DISOLVE_NOISE_05"), "../Bin/Resources/Textures/Effect/Noises/VFX_T_Noise05_D.png");
|
||||
m_pGameInstance->Load_GlobalSRV(TEXT("GLOBAL_DISOLVE_BURN_VERTICAL"), "../Bin/Resources/Textures/Effect/Diffuse/drp_fire_Line_Vertical.png");
|
||||
}
|
||||
#pragma endregion
|
||||
//#pragma region UI_ANI
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349))))
|
||||
|
||||
@@ -57,6 +57,34 @@ void CMonster::Late_Update(_float fTimeDelta)
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CMonster::Render_DeadDisolve()
|
||||
{
|
||||
if (FLT_EPSILON3 * 10 < m_fDeadRatio) {
|
||||
_bool bDisolve = true;
|
||||
_float fDisolveAmount = 0.1f;
|
||||
_float fDisolveEdgeWidth = 0.1f;
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &m_fDeadRatio, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDisolveAmount", &fDisolveAmount, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDisolveEdgeWidth", &fDisolveEdgeWidth, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_GlobalSRV(m_pShaderCom, TEXT("GLOBAL_DISOLVE_NOISE_05"), "g_DeadDisolveTexture"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_GlobalSRV(m_pShaderCom, TEXT("GLOBAL_DISOLVE_BURN_VERTICAL"), "g_DeadDisolveBurnTexture"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMonster::Render_OutLine()
|
||||
{
|
||||
m_bDrawOutLine = false;
|
||||
|
||||
@@ -15,7 +15,17 @@ void CState_Dead::Enter()
|
||||
|
||||
HRESULT CState_Dead::Update(_float fTimeDelta)
|
||||
{
|
||||
if (E_FAIL == (__super::Update(fTimeDelta))) {
|
||||
HRESULT hr = (__super::Update(fTimeDelta));
|
||||
switch (hr)
|
||||
{
|
||||
case E_PENDING:
|
||||
m_vDeadTimer.x += fTimeDelta;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
m_funcLateUpdate(m_vDeadTimer.x / m_vDeadTimer.y);
|
||||
if (m_vDeadTimer.x >= m_vDeadTimer.y) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
@@ -33,7 +43,8 @@ HRESULT CState_Dead::Initialize(STATE_DEAD_DESC* pDesc)
|
||||
}
|
||||
m_pModel = m_pOwner->Get_Component<CModel>();
|
||||
m_pFSM = m_pOwner->Get_Component<CFSM>();
|
||||
|
||||
m_vDeadTimer = pDesc->vDeadTimer;
|
||||
m_funcLateUpdate = pDesc->funcLateUpdate;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "Troll_Weapon.h"
|
||||
#include "Troll_Rock.h"
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Effect_Container.h"
|
||||
#include "EffectParts.h"
|
||||
|
||||
@@ -84,7 +85,7 @@ void CTroll::Update(_float fTimeDelta)
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
m_vStunTimer.x = 0.f;
|
||||
}
|
||||
else {
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
if (0.f == m_vStunTimer.x) {
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
@@ -97,7 +98,6 @@ void CTroll::Update(_float fTimeDelta)
|
||||
m_pRigidBody->ConvertToCCT(*m_pCharacter_Controller);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
@@ -236,10 +236,6 @@ _vector CTroll::Get_LockOnPos()
|
||||
void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
_vector vWorldPos = {}; // 접촉지점
|
||||
_vector vWorldNomal = {}; // 접촉노말
|
||||
_vector vHitDir = {}; // 시도한 move 방향
|
||||
_float fLength = {}; // 작용된 힘
|
||||
|
||||
_uint iSkillType = dynamic_cast<CEffect_Container*>(pOther)->Get_SkillType();
|
||||
switch (iSkillType)
|
||||
|
||||
@@ -254,7 +254,6 @@ HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta)
|
||||
}
|
||||
else {
|
||||
m_fRushTime += fTimeDelta;
|
||||
|
||||
if (m_fRushTime >= 1.5f)
|
||||
{
|
||||
m_fRushTime = 0.f;
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CCallBack_Troll_Behavior final : public PSX::PxUserControllerHitReport
|
||||
{
|
||||
// 구현 예시
|
||||
// CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임
|
||||
//
|
||||
// PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)"
|
||||
// PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)"
|
||||
// PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)"
|
||||
private:
|
||||
CCallBack_Troll_Behavior();
|
||||
public:
|
||||
~CCallBack_Troll_Behavior();
|
||||
|
||||
public:
|
||||
// PxUserControllerHitReport을(를) 통해 상속됨
|
||||
// 충돌알림!!
|
||||
// 주인이 되는 CCT가 이 물체에 대해 어떻게 반응해야 할까?
|
||||
virtual void onShapeHit(const PSX::PxControllerShapeHit& hit) override; // statc, rigid 등과 부딪힌 경우
|
||||
|
||||
virtual void onControllerHit(const PSX::PxControllersHit& hit) override; // 다른 CCT와 부딪힌 경우
|
||||
|
||||
virtual void onObstacleHit(const PSX::PxControllerObstacleHit& hit) override; // 사용자 정의 장애물과 부딪힌 경우
|
||||
|
||||
public:
|
||||
HRESULT Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject);
|
||||
HRESULT Finalize();
|
||||
private:
|
||||
CCharacter_Controller* m_pController = { nullptr };
|
||||
CRigidBody_Dynamic* m_pPartDynamicBody = { nullptr };
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
public:
|
||||
static CCallBack_Troll_Behavior* Create();
|
||||
};
|
||||
NS_END
|
||||
@@ -98,6 +98,9 @@ class CGoblin_Mage final : public CMonster
|
||||
HRESULT Behavior_HitExitCheck(_float fTimeDelta);
|
||||
void Behavior_HitExit();
|
||||
|
||||
void Behavior_DeadEnter();
|
||||
HRESULT Behavior_DeadExitCheck(_float fTimeDelta);
|
||||
void Behavior_DeadExit();
|
||||
private:
|
||||
class CEffectPool* m_pEffectPool = nullptr;
|
||||
};
|
||||
|
||||
@@ -16,6 +16,7 @@ class CMonster abstract : public CUnit
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render_DeadDisolve();
|
||||
virtual HRESULT Render_OutLine() override;
|
||||
virtual void Set_DrawOutLine();
|
||||
_float4 Get_TargetPos() { return m_vTargetPos; }
|
||||
@@ -29,6 +30,7 @@ class CMonster abstract : public CUnit
|
||||
_float4 m_vTargetPos = { };
|
||||
_float3 m_vToTargetDir = { };
|
||||
_float m_fTargetDistance = { FLT_MAX };
|
||||
_float m_fDeadRatio = { 0.f };
|
||||
_bool m_bDrawOutLine = { false };
|
||||
_bool m_bLookAt = { true };
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@ class CState_Dead final : public CState_Root
|
||||
{
|
||||
public:
|
||||
typedef struct tagLand : public CState_Root::STATE_ROOT_DESC {
|
||||
|
||||
_float2 vDeadTimer = { 0.f, 2.f };
|
||||
function<void(_float)> funcLateUpdate = { nullptr };
|
||||
}STATE_DEAD_DESC;
|
||||
private:
|
||||
CState_Dead();
|
||||
@@ -21,7 +22,8 @@ class CState_Dead final : public CState_Root
|
||||
|
||||
private:
|
||||
HRESULT Initialize(STATE_DEAD_DESC* pDesc);
|
||||
|
||||
_float2 m_vDeadTimer = { 0.f, 2.f };
|
||||
function<void(_float)> m_funcLateUpdate = { nullptr };
|
||||
public:
|
||||
static CState_Dead* Create(STATE_DEAD_DESC* pDesc);
|
||||
virtual void Free() override;
|
||||
|
||||
BIN
Binary file not shown.
@@ -375,4 +375,21 @@ float3 Filmic_ToneMapper(float3 vColor)
|
||||
}
|
||||
|
||||
|
||||
float4 ApplyDissolve(Texture2D DisolveTexture, float fDisolveRatio, float fDisolveAmount, float fDisolveEdgeWidth, float4 vDisolveEdgeColor, float4 vMtrlDiffuse, float2 vTexcoord)
|
||||
{
|
||||
float4 vDisolve = DisolveTexture.Sample(DefaultSampler, vTexcoord);
|
||||
float fDisolveValue = vDisolve.r;
|
||||
|
||||
float fDisolveThreshold = saturate(fDisolveRatio + fDisolveAmount);
|
||||
|
||||
clip(fDisolveValue - fDisolveThreshold); // 진짜 잘려나감
|
||||
|
||||
float edgeWidth = max(fDisolveEdgeWidth, FLT_EPSILON5); // 불타는 라인
|
||||
float edgeFactor = smoothstep(fDisolveThreshold, fDisolveThreshold + edgeWidth, fDisolveValue);
|
||||
|
||||
vMtrlDiffuse.rgb = lerp(vDisolveEdgeColor.rgb, vMtrlDiffuse.rgb, edgeFactor);
|
||||
|
||||
return vMtrlDiffuse;
|
||||
}
|
||||
|
||||
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
|
||||
|
||||
@@ -572,7 +572,7 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
|
||||
float fVisibility_Dynamic_Near = ShadowVisibility_hwPCF(g_ShadowNearTexture, vPosition, float2(g_iMaxShadowWidth, g_iMaxShadowHeight), 0.005f);
|
||||
float fVisibility_Static = ShadowVisibility_hwPCF(g_PreShadowTexture, vPreShadowPosition, float2(g_iMaxShadowWidth, g_iMaxShadowHeight), 0.005f);
|
||||
|
||||
Out.vBackBuffer.rgb *= lerp(0.f, 1.f, lerp(fVisibility_Dynamic_Near, fVisibility_Static, vDepthDesc.y));
|
||||
Out.vBackBuffer.rgb *= lerp(0.25f, 1.f, lerp(fVisibility_Dynamic_Near, fVisibility_Static, vDepthDesc.y));
|
||||
|
||||
|
||||
float4 vColor = 0.f;
|
||||
|
||||
@@ -5,6 +5,7 @@ matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||
|
||||
bool g_bRimLight;
|
||||
bool g_bUseNormalMap;
|
||||
bool g_bDisolve;
|
||||
|
||||
float g_fFar;
|
||||
float g_LifeRatio;
|
||||
@@ -16,6 +17,11 @@ float3 g_vOutLineColor;
|
||||
float g_fOutLineScale;
|
||||
float g_fOutLineThickness;
|
||||
float g_fOutLinePower;
|
||||
float g_fDisolveRatio;
|
||||
float g_fDisolveAmount;
|
||||
float g_fDisolveEdgeWidth;
|
||||
|
||||
vector g_vDisolveEdgeColor;
|
||||
vector g_vCamPosition;
|
||||
|
||||
Texture2D g_DiffuseTexture;
|
||||
@@ -28,6 +34,8 @@ Texture2D g_EmissiveTexture;
|
||||
Texture2D g_AmbientTexture;
|
||||
Texture2D g_AmbientOcclusionTexture;
|
||||
Texture2D g_UnknownTexture;
|
||||
Texture2D g_DeadDisolveTexture;
|
||||
Texture2D g_DeadDisolveBurnTexture;
|
||||
|
||||
|
||||
bool g_bBinded_Texture[AI_TEXTURE_TYPE_MAX * 27];
|
||||
@@ -258,6 +266,11 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
|
||||
float4 vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
|
||||
float4 vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
|
||||
if (true == g_bDisolve)
|
||||
{
|
||||
float4 vBurnColor = g_DeadDisolveBurnTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||
vMtrlDiffuse = ApplyDissolve(g_DeadDisolveTexture, g_fDisolveRatio, g_fDisolveAmount, g_fDisolveEdgeWidth, vBurnColor, vMtrlDiffuse, In.vTexcoord);
|
||||
}
|
||||
//if (AlmostEqual7(g_bBinded_Texture[AI_TEXTURE_TYPE_TRANSMISSION], true))
|
||||
//{
|
||||
// float4 vTransmission = g_TransmissionTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
|
||||
|
||||
@@ -5,6 +5,7 @@ matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||
|
||||
bool g_bUVTargetDiffuse;
|
||||
bool g_bAdditiveDisolve;
|
||||
bool g_bDisolve;
|
||||
|
||||
float g_LifeRatio;
|
||||
float g_fFar;
|
||||
@@ -47,6 +48,7 @@ Texture2D g_GlassTexture;
|
||||
TextureCube g_CubeTexture;
|
||||
Texture2D g_NormalLargeTexture;
|
||||
Texture2D g_NormalSubTexture;
|
||||
Texture2D g_DeadDisolveTexture;
|
||||
|
||||
float g_fNormalValue1;
|
||||
float g_fNormalValue2;
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 319 KiB |
@@ -375,4 +375,21 @@ float3 Filmic_ToneMapper(float3 vColor)
|
||||
}
|
||||
|
||||
|
||||
float4 ApplyDissolve(Texture2D DisolveTexture, float fDisolveRatio, float fDisolveAmount, float fDisolveEdgeWidth, float4 vDisolveEdgeColor, float4 vMtrlDiffuse, float2 vTexcoord)
|
||||
{
|
||||
float4 vDisolve = DisolveTexture.Sample(DefaultSampler, vTexcoord);
|
||||
float fDisolveValue = vDisolve.r;
|
||||
|
||||
float fDisolveThreshold = saturate(fDisolveRatio + fDisolveAmount);
|
||||
|
||||
clip(fDisolveValue - fDisolveThreshold); // 진짜 잘려나감
|
||||
|
||||
float edgeWidth = max(fDisolveEdgeWidth, FLT_EPSILON5); // 불타는 라인
|
||||
float edgeFactor = smoothstep(fDisolveThreshold, fDisolveThreshold + edgeWidth, fDisolveValue);
|
||||
|
||||
vMtrlDiffuse.rgb = lerp(vDisolveEdgeColor.rgb, vMtrlDiffuse.rgb, edgeFactor);
|
||||
|
||||
return vMtrlDiffuse;
|
||||
}
|
||||
|
||||
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
|
||||
|
||||
@@ -572,7 +572,7 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
|
||||
float fVisibility_Dynamic_Near = ShadowVisibility_hwPCF(g_ShadowNearTexture, vPosition, float2(g_iMaxShadowWidth, g_iMaxShadowHeight), 0.005f);
|
||||
float fVisibility_Static = ShadowVisibility_hwPCF(g_PreShadowTexture, vPreShadowPosition, float2(g_iMaxShadowWidth, g_iMaxShadowHeight), 0.005f);
|
||||
|
||||
Out.vBackBuffer.rgb *= lerp(0.f, 1.f, lerp(fVisibility_Dynamic_Near, fVisibility_Static, vDepthDesc.y));
|
||||
Out.vBackBuffer.rgb *= lerp(0.25f, 1.f, lerp(fVisibility_Dynamic_Near, fVisibility_Static, vDepthDesc.y));
|
||||
|
||||
|
||||
float4 vColor = 0.f;
|
||||
|
||||
@@ -520,6 +520,16 @@ _bool CGameInstance::isIn_LocalFrustum(_fvector vLocalPos, _float fRadius)
|
||||
return m_pPipeLine->isIn_LocalFrustum(vLocalPos, fRadius);
|
||||
}
|
||||
|
||||
HRESULT CGameInstance::Bind_GlobalSRV(CShader* pShader, const _tchar* wszKeyGlobalSRV, const _char* pConstantName)
|
||||
{
|
||||
return m_pPipeLine->Bind_GlobalSRV(pShader, wszKeyGlobalSRV, pConstantName);
|
||||
}
|
||||
|
||||
HRESULT CGameInstance::Load_GlobalSRV(const _tchar* wszKeyGlobalSRV, filesystem::path pathSRVFolder)
|
||||
{
|
||||
return m_pPipeLine->Load_GlobalSRV(wszKeyGlobalSRV, pathSRVFolder);
|
||||
}
|
||||
|
||||
void CGameInstance::Add_Light(_uint _iCurrentLevel, CLight* _pLight)
|
||||
{
|
||||
m_pLight_Manager->Add_Light(_iCurrentLevel, _pLight);
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
#include "pch.h"
|
||||
#include "PipeLine.h"
|
||||
#include "Shader.h"
|
||||
#include "GameInstance.h"
|
||||
|
||||
CPipeLine::CPipeLine()
|
||||
:m_pGameInstance(CGameInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pGameInstance);
|
||||
}
|
||||
|
||||
void CPipeLine::Set_Transform(D3DTS eState, _fmatrix TransformStateMatrix)
|
||||
@@ -63,6 +68,29 @@ _bool CPipeLine::isIn_LocalFrustum(_fvector vLocalPos, _float fRadius)
|
||||
return true;
|
||||
}
|
||||
|
||||
HRESULT CPipeLine::Bind_GlobalSRV(CShader* pShader, const _tchar* wszKeyGlobalSRV, const _char* pConstantName)
|
||||
{
|
||||
ID3D11ShaderResourceView* pSRV = Find_GlobalShader(wszKeyGlobalSRV);
|
||||
if (FAILED(pShader->Bind_SRV(pConstantName, pSRV))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPipeLine::Load_GlobalSRV(const _tchar* wszKeyGlobalSRV, filesystem::path pathSRVFolder)
|
||||
{
|
||||
ID3D11ShaderResourceView* pSRV = Find_GlobalShader(wszKeyGlobalSRV);
|
||||
if (nullptr != pSRV) {
|
||||
return E_FAIL;
|
||||
}
|
||||
pSRV = m_pGameInstance->Add_Resource(pathSRVFolder.string().c_str());
|
||||
if (nullptr == pSRV) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_mapGlobalSRV.emplace(wszKeyGlobalSRV, pSRV);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CPipeLine::Update()
|
||||
{
|
||||
for (_uint i = ENUM_CLASS(D3DTS::VIEW_INV); i < ENUM_CLASS(D3DTS::END); ++i)
|
||||
@@ -112,6 +140,15 @@ void CPipeLine::Make_Planes(const _float4* pPoints, _float4* pPlanes)
|
||||
XMStoreFloat4(&pPlanes[5], XMPlaneFromPoints(XMLoadFloat4(&pPoints[0]), XMLoadFloat4(&pPoints[1]), XMLoadFloat4(&pPoints[2])));
|
||||
}
|
||||
|
||||
ID3D11ShaderResourceView* CPipeLine::Find_GlobalShader(const _tchar* wszKeyGlobalSRV)
|
||||
{
|
||||
auto iter = m_mapGlobalSRV.find(wszKeyGlobalSRV);
|
||||
if (iter == m_mapGlobalSRV.end()) {
|
||||
return nullptr;
|
||||
}
|
||||
return (*iter).second;
|
||||
}
|
||||
|
||||
CPipeLine* CPipeLine::Create()
|
||||
{
|
||||
CPipeLine* pInstance = new CPipeLine();
|
||||
@@ -127,4 +164,9 @@ CPipeLine* CPipeLine::Create()
|
||||
void CPipeLine::Free()
|
||||
{
|
||||
__super::Free();
|
||||
for (auto& pairSRV : m_mapGlobalSRV) {
|
||||
SAFE_RELEASE(pairSRV.second);
|
||||
}
|
||||
m_mapGlobalSRV.clear();
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
}
|
||||
|
||||
@@ -137,13 +137,18 @@ HRESULT CRigidBody_Dynamic::ConvertToCCT(CCharacter_Controller& CCTOriginal)
|
||||
m_pRigidBody->setAngularVelocity(PSX::PxZERO()); // DO 객체 이동 제거
|
||||
m_pRigidBody->setLinearVelocity(PSX::PxZERO());
|
||||
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody); // 현재 액터 비활성화
|
||||
m_bActive = false;
|
||||
Detach_Actor();
|
||||
CCTOriginal.SetActive(true);
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
void CRigidBody_Dynamic::Detach_Actor()
|
||||
{
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody); // 현재 액터 비활성화
|
||||
m_bActive = false;
|
||||
}
|
||||
|
||||
_vector CRigidBody_Dynamic::Get_Position()
|
||||
{
|
||||
PSX::PxVec3 pxPos = m_pRigidBody->getGlobalPose().p;
|
||||
|
||||
@@ -122,7 +122,7 @@ _bool CStat::Get_Damage(_float fDamage)
|
||||
{
|
||||
_bool bResultDead = { false };
|
||||
_float fCurHp = Get_Stat(ENUM_CLASS(STAT::HP)) - fDamage;
|
||||
if (fCurHp < 0) { fCurHp = 0; bResultDead = true; }
|
||||
if (fCurHp <= 0) { fCurHp = 0; bResultDead = true; }
|
||||
Set_Stat(ENUM_CLASS(STAT::HP), fCurHp);
|
||||
return bResultDead;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ class ENGINE_DLL CComponent abstract : public CBase
|
||||
|
||||
public:
|
||||
virtual HRESULT Render() { return S_OK; }
|
||||
virtual class CGameObject* Get_Owner() { return m_pOwner; }
|
||||
|
||||
protected:
|
||||
ID3D11Device* m_pDevice = { nullptr };
|
||||
@@ -35,4 +36,4 @@ class ENGINE_DLL CComponent abstract : public CBase
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
NS_END
|
||||
|
||||
@@ -400,7 +400,7 @@ typedef struct tagOnCollsionInfo
|
||||
_float4 vWorldNomal = {}; // 접촉노말
|
||||
_float4 vHitDir = {}; // 시도한 move 방향
|
||||
_float fLength = {}; // 작용된 힘
|
||||
|
||||
class CGameObject* pObject = { nullptr }; // 시전자
|
||||
}ON_COLLISION_INFO;
|
||||
|
||||
typedef struct tagKeyFrameDesc
|
||||
|
||||
@@ -138,6 +138,8 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
void Transform_Frustum_ToLocalSpace(_fmatrix WorldMatrixInverse);
|
||||
_bool isIn_WorldFrustum(_fvector vWorldPos, _float fRadius);
|
||||
_bool isIn_LocalFrustum(_fvector vLocalPos, _float fRadius);
|
||||
HRESULT Bind_GlobalSRV(class CShader* pShader, const _tchar* wszKeyGlobalSRV, const _char* pConstantName);
|
||||
HRESULT Load_GlobalSRV(const _tchar* wszKeyGlobalSRV, filesystem::path pathSRVFolder);
|
||||
|
||||
#pragma endregion
|
||||
#pragma region LIGHT_MANAGER
|
||||
|
||||
@@ -21,11 +21,13 @@ class CPipeLine final : public CBase
|
||||
_bool isIn_WorldFrustum(_fvector vWorldPos, _float fRadius);
|
||||
_bool isIn_LocalFrustum(_fvector vLocalPos, _float fRadius);
|
||||
|
||||
|
||||
HRESULT Bind_GlobalSRV(class CShader* pShader, const _tchar* wszKeyGlobalSRV, const _char* pConstantName);
|
||||
HRESULT Load_GlobalSRV(const _tchar* wszKeyGlobalSRV, filesystem::path pathSRVFolder);
|
||||
public:
|
||||
void Update();
|
||||
|
||||
private:
|
||||
class CGameInstance* m_pGameInstance = { nullptr };
|
||||
_float4x4 m_TransformStateMatrices[ENUM_CLASS(D3DTS::END)] = {};
|
||||
_float4 m_vCamPosition = {};
|
||||
|
||||
@@ -34,9 +36,12 @@ class CPipeLine final : public CBase
|
||||
_float4 m_vWorldPlanes[6] = {};
|
||||
_float4 m_vLocalPlanes[6] = {};
|
||||
|
||||
unordered_map<_wstring, ID3D11ShaderResourceView*> m_mapGlobalSRV = {};
|
||||
private:
|
||||
HRESULT Initialize();
|
||||
void Make_Planes(const _float4* pPoints, _float4* pPlanes);
|
||||
ID3D11ShaderResourceView* Find_GlobalShader(const _tchar* wszKeyGlobalSRV);
|
||||
|
||||
public:
|
||||
static CPipeLine* Create();
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -44,6 +44,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
|
||||
void Set_Kinematic(_bool bKinematic);
|
||||
|
||||
HRESULT ConvertToCCT(class CCharacter_Controller& CCTOriginal);
|
||||
void Detach_Actor();
|
||||
_bool IsActive() const { return m_bActive; }
|
||||
void SetActive(_bool bCondition) { m_bActive = bCondition; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user