diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 6977a8e9a..54d43be5c 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -198,7 +198,10 @@
-
+
+ true
+ true
+
@@ -273,7 +276,10 @@
-
+
+ true
+ true
+
diff --git a/Jusin154_Team3D/Editor/Private/CallBack_Playable_Behavior.cpp b/Jusin154_Team3D/Editor/Private/CallBack_Playable_Behavior.cpp
index ef3c7179b..a248e45b2 100644
--- a/Jusin154_Team3D/Editor/Private/CallBack_Playable_Behavior.cpp
+++ b/Jusin154_Team3D/Editor/Private/CallBack_Playable_Behavior.cpp
@@ -3,8 +3,15 @@
#include "GameInstance.h"
-CCallBack_Playable_Behavior::CCallBack_Playable_Behavior()
+CCallBack_Playable_Behavior::CCallBack_Playable_Behavior():
+ m_pGameInstance(CGameInstance::GetInstance())
{
+ SAFE_ADDREF(m_pGameInstance);
+}
+
+CCallBack_Playable_Behavior::~CCallBack_Playable_Behavior()
+{
+ SAFE_RELEASE(m_pGameInstance);
}
PSX::PxControllerBehaviorFlags CCallBack_Playable_Behavior::getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor)
@@ -12,17 +19,31 @@ PSX::PxControllerBehaviorFlags CCallBack_Playable_Behavior::getBehaviorFlags(con
if (nullptr == actor.userData) {
return PSX::PxControllerBehaviorFlags(0);
}
+ PSX::PxControllerBehaviorFlags eResults = PSX::PxControllerBehaviorFlags(0);
PhsXUserData* pActorData = static_cast(actor.userData);
-
switch (pActorData->eKind)
{
case PHYSX_KIND::BODY_STATIC:
- return PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT
- | PSX::PxControllerBehaviorFlag::eCCT_SLIDE;
+ eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
break;
case PHYSX_KIND::BODY_DYNAMIC:
- return PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT
- | PSX::PxControllerBehaviorFlag::eCCT_SLIDE;
+ switch (pActorData->iSubKind)
+ {
+ case 20:
+ eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE;
+ break;
+ case 21:
+ eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
+ break;
+ case 22:
+ eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
+ break;
+ case 23:
+ eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT;
+ break;
+ default:
+ break;
+ }
break;
case PHYSX_KIND::CCTActor:
// Action
@@ -33,9 +54,7 @@ PSX::PxControllerBehaviorFlags CCallBack_Playable_Behavior::getBehaviorFlags(con
break;
}
-
- // 나머지는 아무 특별 동작 없음
- return PSX::PxControllerBehaviorFlags(0);
+ return eResults;
}
PSX::PxControllerBehaviorFlags CCallBack_Playable_Behavior::getBehaviorFlags(const PSX::PxController& controller)
diff --git a/Jusin154_Team3D/Editor/Private/CallBack_Playable_HitRepot.cpp b/Jusin154_Team3D/Editor/Private/CallBack_Playable_HitRepot.cpp
index 2d5bc81cc..6852be5e4 100644
--- a/Jusin154_Team3D/Editor/Private/CallBack_Playable_HitRepot.cpp
+++ b/Jusin154_Team3D/Editor/Private/CallBack_Playable_HitRepot.cpp
@@ -1,9 +1,17 @@
#include "pch.h"
#include "CallBack_Playable_HitRepot.h"
#include "GameInstance.h"
+#include "GameObject.h"
-CCallBack_Playable_HitRepot::CCallBack_Playable_HitRepot()
+CCallBack_Playable_HitRepot::CCallBack_Playable_HitRepot():
+ m_pGameInstance(CGameInstance::GetInstance())
{
+ SAFE_ADDREF(m_pGameInstance);
+}
+
+CCallBack_Playable_HitRepot::~CCallBack_Playable_HitRepot()
+{
+ SAFE_RELEASE(m_pGameInstance);
}
void CCallBack_Playable_HitRepot::onShapeHit(const PSX::PxControllerShapeHit& hit)
@@ -18,17 +26,32 @@ void CCallBack_Playable_HitRepot::onShapeHit(const PSX::PxControllerShapeHit& hi
PSX::PxRigidActor* pActor = hit.actor;
if (nullptr != pController && nullptr != pActor) {
- PhsXUserData* pActorData = static_cast(pActor->userData);
- if (nullptr == pActorData) { // missing user data
+ PhsXUserData* pTargetActorData = static_cast(pActor->userData);
+ PhsXUserData* pOwnerActorData = static_cast(pController->getActor()->userData);
+ if (nullptr == pTargetActorData) { // missing user data
return;
}
- switch (pActorData->eKind)
+
+ switch (pTargetActorData->eKind)
{
case PHYSX_KIND::BODY_STATIC:
// action
break;
case PHYSX_KIND::BODY_DYNAMIC:
{
+ switch (pTargetActorData->iSubKind)
+ {
+ case 23: // 무거운데 올라갈 수 있는 벽
+ if (m_pGameInstance->Key_Pressing(DIK_E)) {
+ pOwnerActorData->pOwner->Get_Component()->BookMomentum(fLength * XMVectorSet(0.f, 1.f, 0.f, 0.f));
+ }
+ else if (m_pGameInstance->Key_Pressing(DIK_R)) {
+ pOwnerActorData->pOwner->Get_Component()->BookMomentum(fLength * XMVectorSet(0.f, -1.f, 0.f, 0.f));
+ }
+ break;
+ default:
+ break;
+ }
PSX::PxRigidDynamic* pDynamic = static_cast(pActor);
pDynamic->addForce(vDir * fLength * 100000.f, PSX::PxForceMode::eIMPULSE);
} break;
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp
index a2fae363e..fe5b6e0d8 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp
@@ -89,15 +89,15 @@ HRESULT CDummy_PhysXBox::Ready_Components(void* pArg)
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
- BOXSTARTPOS_DESC* pBox = static_cast(pArg);
+ PHYSXDUMMY_DESC* pPhysXDummyDesc = static_cast(pArg);
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pBox->vPos), 1.f));
- m_pTransformCom->Rotation(pBox->vRotRPY.x, pBox->vRotRPY.y, pBox->vRotRPY.z);
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pPhysXDummyDesc->vPos), 1.f));
+ m_pTransformCom->Rotation(pPhysXDummyDesc->vRotRPY.x, pPhysXDummyDesc->vRotRPY.y, pPhysXDummyDesc->vRotRPY.z);
{ // RIGID_BODY
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
-
+ Desc.iSubKind = pPhysXDummyDesc->iSubKind;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXDoor.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXDoor.cpp
index e68e35086..a46ff03a5 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXDoor.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXDoor.cpp
@@ -79,7 +79,7 @@ HRESULT CDummy_PhysXDoor::Ready_Components(void* pArg)
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
- BOXSTARTPOS_DESC* pBox = static_cast(pArg);
+ PHYSXDUMMY_DESC* pPhysXDummyDesc = static_cast(pArg);
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pBox->vPos), 1.f));
m_pTransformCom->Rotation(pBox->vRotRPY.x, pBox->vRotRPY.y, pBox->vRotRPY.z);
@@ -87,7 +87,7 @@ HRESULT CDummy_PhysXDoor::Ready_Components(void* pArg)
{ // RIGID_BODY
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
-
+ Desc.iSubKind = pPhysXDummyDesc->iSubKind;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp
index c61904291..5b54b1435 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp
@@ -88,10 +88,10 @@ HRESULT CDummy_PhysXMesh::Ready_Components(void* pArg)
reinterpret_cast(&m_pShaderCom))))
return E_FAIL;
- BOXSTARTPOS_DESC* pBox = static_cast(pArg);
+ PHYSXDUMMY_DESC* pPhysXDummyDesc = static_cast(pArg);
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pBox->vPos), 1.f));
- m_pTransformCom->Rotation(pBox->vRotRPY.x, pBox->vRotRPY.y, pBox->vRotRPY.z);
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pPhysXDummyDesc->vPos), 1.f));
+ m_pTransformCom->Rotation(pPhysXDummyDesc->vRotRPY.x, pPhysXDummyDesc->vRotRPY.y, pPhysXDummyDesc->vRotRPY.z);
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_River_Col_Model"), (CComponent**)&m_pModelCom))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlatform.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlatform.cpp
index abe07be1c..fc5eb6447 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlatform.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlatform.cpp
@@ -94,15 +94,15 @@ HRESULT CDummy_PhysXPlatform::Ready_Components(void* pArg)
if (FAILED(__super::Ready_Components(&Desc))) {
return E_FAIL;
}
- BOXSTARTPOS_DESC* pBox = static_cast(pArg);
+ PHYSXDUMMY_DESC* pPhysXDummyDesc = static_cast(pArg);
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pBox->vPos), 1.f));
- m_pTransformCom->Rotation(pBox->vRotRPY.x, pBox->vRotRPY.y, pBox->vRotRPY.z);
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pPhysXDummyDesc->vPos), 1.f));
+ m_pTransformCom->Rotation(pPhysXDummyDesc->vRotRPY.x, pPhysXDummyDesc->vRotRPY.y, pPhysXDummyDesc->vRotRPY.z);
{ // RIGID_BODY
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
-
+ Desc.iSubKind = pPhysXDummyDesc->iSubKind;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_PLATFORM"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
index 4a0689dc2..ce7b8ac7e 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
@@ -112,12 +112,13 @@ HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg)
if (FAILED(__super::Ready_Components(&TransformDesc))) {
return E_FAIL;
}
- PlayableSTARTPOS_DESC* pDesc = static_cast(pArg);
+ PHYSXDUMMY_DESC* pDesc = static_cast(pArg);
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPos), 1.f));
m_pTransformCom->Rotation(pDesc->vRotRPY.x, pDesc->vRotRPY.y, pDesc->vRotRPY.z);
{
CCharacter_Controller::Character_Controller_DESC Desc{};
+ Desc.iSubKind = pDesc->iSubKind;
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::CAPSULE;
Desc.fContactOffset = 0.1f;
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXWall.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXWall.cpp
index 8dcc4e0b0..0aca5cabe 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXWall.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXWall.cpp
@@ -79,15 +79,15 @@ HRESULT CDummy_PhysXWall::Ready_Components(void* pArg)
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
- BOXSTARTPOS_DESC* pBox = static_cast(pArg);
+ PHYSXDUMMY_DESC* pPhysXDummyDesc = static_cast(pArg);
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pBox->vPos), 1.f));
- m_pTransformCom->Rotation(pBox->vRotRPY.x, pBox->vRotRPY.y, pBox->vRotRPY.z);
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pPhysXDummyDesc->vPos), 1.f));
+ m_pTransformCom->Rotation(pPhysXDummyDesc->vRotRPY.x, pPhysXDummyDesc->vRotRPY.y, pPhysXDummyDesc->vRotRPY.z);
{ // RIGID_BODY
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
-
+ Desc.iSubKind = pPhysXDummyDesc->iSubKind;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp b/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp
index 11140c5c7..e2d854245 100644
--- a/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp
@@ -95,43 +95,55 @@ HRESULT CLevel_PhysXLab::Ready_Layer_Terrain(const _wstring& strLayerTag)
HRESULT CLevel_PhysXLab::Ready_Layer_PhysXObjects(const _wstring& strLayerTag)
{
for (int i = 0; i < 10; ++i) {
- CDummy_PhysXBox::BOXSTARTPOS_DESC Desc{};
+ CDummy_PhysXBox::PHYSXDUMMY_DESC Desc{};
Desc.vPos = { m_pGameInstance->Random_Float(0.f, 30.f), m_pGameInstance->Random_Float(3.f, 33.f), m_pGameInstance->Random_Float(0.f, 30.f) };
Desc.vRotRPY = { m_pGameInstance->Random_Float(0.f, XM_2PI), m_pGameInstance->Random_Float(0.f, XM_2PI), m_pGameInstance->Random_Float(0.f, XM_2PI) };
+ Desc.iSubKind = 0;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) {
return E_FAIL;
}
}
{
- CDummy_PhysXWall::BOXSTARTPOS_DESC Desc{};
+ CDummy_PhysXWall::PHYSXDUMMY_DESC Desc{};
Desc.vPos = { -15.f, 3.f, 15.f };
Desc.vRotRPY = { 0.f, m_pGameInstance->Random_Float(0.f, XM_2PI), 0.f };
+ Desc.iSubKind = 23;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) {
return E_FAIL;
}
}
{
- CDummy_PhysXPlatform::BOXSTARTPOS_DESC Desc{};
- Desc.vPos = { 0.f, 2.f, 10.f };
+ CDummy_PhysXPlatform::PHYSXDUMMY_DESC Desc{};
+ Desc.vPos = { -1.f, 2.f, 10.f };
Desc.vRotRPY = { 0.f, m_pGameInstance->Random_Float(0.f, XM_2PI), 0.f };
-
+ Desc.iSubKind = 20;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) {
return E_FAIL;
}
}
{
- CDummy_PhysXPlayable::PlayableSTARTPOS_DESC Desc{};
+ CDummy_PhysXPlatform::PHYSXDUMMY_DESC Desc{};
+ Desc.vPos = { 0.f, 2.f, 10.f };
+ Desc.vRotRPY = { 0.f, m_pGameInstance->Random_Float(0.f, XM_2PI), 0.f };
+ Desc.iSubKind = 21;
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) {
+ return E_FAIL;
+ }
+ }
+ {
+ CDummy_PhysXPlayable::PHYSXDUMMY_DESC Desc{};
Desc.vPos = { 0.f, 100.f, 0.f };
Desc.vRotRPY = { 0.f, 0.f, 0.f };
+ Desc.iSubKind = 10;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER, &Desc))) {
return E_FAIL;
}
}
//{
- // CDummy_PhysXMesh::BOXSTARTPOS_DESC Desc{};
+ // CDummy_PhysXMesh::PHYSXDUMMY_DESC Desc{};
// Desc.vPos = { 0.f, 10.f, 0.f };
// Desc.vRotRPY = { 0.f, 0.f, 0.f };
// if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CHUNK, &Desc))) {
diff --git a/Jusin154_Team3D/Editor/Public/CallBack_Playable_Behavior.h b/Jusin154_Team3D/Editor/Public/CallBack_Playable_Behavior.h
index 67bec0771..cbb0aba6c 100644
--- a/Jusin154_Team3D/Editor/Public/CallBack_Playable_Behavior.h
+++ b/Jusin154_Team3D/Editor/Public/CallBack_Playable_Behavior.h
@@ -2,6 +2,10 @@
#include "Editor_Define.h"
+NS_BEGIN(Engine)
+class CGameInstance;
+NS_END
+
NS_BEGIN(Editor)
class CCallBack_Playable_Behavior final : public PSX::PxControllerBehaviorCallback
@@ -15,7 +19,7 @@ class CCallBack_Playable_Behavior final : public PSX::PxControllerBehaviorCallba
public:
CCallBack_Playable_Behavior();
- ~CCallBack_Playable_Behavior() = default;
+ ~CCallBack_Playable_Behavior();
public:
// PxControllerBehaviorCallback을(를) 통해 상속됨
@@ -27,5 +31,7 @@ class CCallBack_Playable_Behavior final : public PSX::PxControllerBehaviorCallba
virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxController& controller) override;
virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxObstacle& obstacle) override;
+private:
+ CGameInstance* m_pGameInstance = { nullptr };
};
NS_END
diff --git a/Jusin154_Team3D/Editor/Public/CallBack_Playable_HitRepot.h b/Jusin154_Team3D/Editor/Public/CallBack_Playable_HitRepot.h
index de402f1f0..b6bb6004a 100644
--- a/Jusin154_Team3D/Editor/Public/CallBack_Playable_HitRepot.h
+++ b/Jusin154_Team3D/Editor/Public/CallBack_Playable_HitRepot.h
@@ -2,6 +2,10 @@
#include "Editor_Define.h"
+NS_BEGIN(Engine)
+class CGameInstance;
+NS_END
+
NS_BEGIN(Editor)
class CCallBack_Playable_HitRepot final : public PSX::PxUserControllerHitReport
@@ -15,7 +19,7 @@ class CCallBack_Playable_HitRepot final : public PSX::PxUserControllerHitReport
public:
CCallBack_Playable_HitRepot();
- ~CCallBack_Playable_HitRepot() = default;
+ ~CCallBack_Playable_HitRepot();
public:
// PxUserControllerHitReport을(를) 통해 상속됨
@@ -26,5 +30,8 @@ class CCallBack_Playable_HitRepot final : public PSX::PxUserControllerHitReport
virtual void onControllerHit(const PSX::PxControllersHit& hit) override; // 다른 CCT와 부딪힌 경우
virtual void onObstacleHit(const PSX::PxControllerObstacleHit& hit) override; // 사용자 정의 장애물과 부딪힌 경우
+
+private:
+ CGameInstance* m_pGameInstance = { nullptr };
};
NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXBox.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXBox.h
index cf2d7f4bb..71ee9bc09 100644
--- a/Jusin154_Team3D/Editor/Public/Dummy_PhysXBox.h
+++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXBox.h
@@ -14,11 +14,12 @@ NS_BEGIN(Editor)
class CDummy_PhysXBox final : public CGameObject
{
public:
- typedef struct tagBoxStartPos
+ typedef struct tagPhysXDummyDesc
{
_float3 vPos = {};
_float3 vRotRPY = {};
- }BOXSTARTPOS_DESC;
+ _uint iSubKind = {};
+ }PHYSXDUMMY_DESC;
private:
CDummy_PhysXBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CDummy_PhysXBox(const CDummy_PhysXBox& rhs);
@@ -50,4 +51,4 @@ class CDummy_PhysXBox final : public CGameObject
void Describe_Entity() override;
};
-NS_END
\ No newline at end of file
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXDoor.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXDoor.h
index 790a32a5a..e90d185a0 100644
--- a/Jusin154_Team3D/Editor/Public/Dummy_PhysXDoor.h
+++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXDoor.h
@@ -14,11 +14,12 @@ NS_BEGIN(Editor)
class CDummy_PhysXDoor final : public CGameObject
{
public:
- typedef struct tagBoxStartPos
+ typedef struct tagPhysXDummyDesc
{
- _float3 vPos = {};
- _float3 vRotRPY = {};
- }BOXSTARTPOS_DESC;
+ _float3 vPos = { };
+ _float3 vRotRPY = { };
+ _uint iSubKind = { };
+ }PHYSXDUMMY_DESC;
private:
CDummy_PhysXDoor(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CDummy_PhysXDoor(const CDummy_PhysXDoor& rhs);
diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h
index 06fc3e4ea..4aaa3edf1 100644
--- a/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h
+++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXMesh.h
@@ -14,11 +14,11 @@ NS_BEGIN(Editor)
class CDummy_PhysXMesh final : public CGameObject
{
public:
- typedef struct tagBoxStartPos
+ typedef struct tagPhysXDummyDesc
{
_float3 vPos = {};
_float3 vRotRPY = {};
- }BOXSTARTPOS_DESC;
+ }PHYSXDUMMY_DESC;
private:
CDummy_PhysXMesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CDummy_PhysXMesh(const CDummy_PhysXMesh& rhs);
diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlatform.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlatform.h
index 4aa278346..dfa3f4223 100644
--- a/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlatform.h
+++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlatform.h
@@ -14,11 +14,12 @@ NS_BEGIN(Editor)
class CDummy_PhysXPlatform final : public CGameObject
{
public:
- typedef struct tagBoxStartPos
+ typedef struct tagPhysXDummyDesc
{
- _float3 vPos = {};
- _float3 vRotRPY = {};
- }BOXSTARTPOS_DESC;
+ _float3 vPos = { };
+ _float3 vRotRPY = { };
+ _uint iSubKind = { };
+ }PHYSXDUMMY_DESC;
private:
CDummy_PhysXPlatform(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CDummy_PhysXPlatform(const CDummy_PhysXPlatform& rhs);
diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h
index 611c5582c..2dba3e944 100644
--- a/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h
+++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXPlayable.h
@@ -16,11 +16,12 @@ NS_BEGIN(Editor)
class CDummy_PhysXPlayable final : public CGameObject
{
public:
- typedef struct tagPlayableStartPos
+ typedef struct tagPhysXDummyDesc
{
- _float3 vPos = {};
- _float3 vRotRPY = {};
- }PlayableSTARTPOS_DESC;
+ _float3 vPos = { };
+ _float3 vRotRPY = { };
+ _uint iSubKind = { };
+ }PHYSXDUMMY_DESC;
private:
CDummy_PhysXPlayable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CDummy_PhysXPlayable(const CDummy_PhysXPlayable& rhs);
diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXWall.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXWall.h
index 0fed90293..5fb74604f 100644
--- a/Jusin154_Team3D/Editor/Public/Dummy_PhysXWall.h
+++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXWall.h
@@ -14,11 +14,12 @@ NS_BEGIN(Editor)
class CDummy_PhysXWall final : public CGameObject
{
public:
- typedef struct tagBoxStartPos
+ typedef struct tagPhysXDummyDesc
{
- _float3 vPos = {};
- _float3 vRotRPY = {};
- }BOXSTARTPOS_DESC;
+ _float3 vPos = { };
+ _float3 vRotRPY = { };
+ _uint iSubKind = { };
+ }PHYSXDUMMY_DESC;
private:
CDummy_PhysXWall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CDummy_PhysXWall(const CDummy_PhysXWall& rhs);
diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
index 063012895..6ad96c47c 100644
--- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
+++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
@@ -195,6 +195,7 @@ HRESULT CCharacter_Controller::Initialize(void* pArg)
m_tagData.pOwner = m_pOwner;
XMStoreFloat4x4(&m_tagData.BeforeMatrix, m_pTransform->Get_XMWorldMatrix());
m_tagData.pCharacter = this;
+ m_tagData.iSubKind = pDesc->iSubKind;
}
switch (m_eBodyType)
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody.cpp b/Jusin154_Team3D/Engine/Private/RigidBody.cpp
index 8589650a7..77b64bf77 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody.cpp
@@ -29,6 +29,8 @@ HRESULT CRigidBody::Initialize(void* pArg)
m_pTransform = m_pOwner->Get_Component();
SAFE_ADDREF(m_pTransform);
+ m_tagData.iSubKind = pDesc->iSubKind;
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h
index 99efd0a8d..839e270c1 100644
--- a/Jusin154_Team3D/Engine/Public/Character_Controller.h
+++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h
@@ -12,9 +12,6 @@ class ENGINE_DLL CCharacter_Controller final :
// kinematic 기반임
public:
#pragma region STRUCT
- struct CapsuleInfo
- {
- };
typedef struct tagCharacter_ControllerDesc
{
CTransform* pTransform = { nullptr };
@@ -23,7 +20,7 @@ class ENGINE_DLL CCharacter_Controller final :
_float3 fMaterial = { 0.5f, 0.5f, 0.6f };
_bool bAutoStepping = { false }; // 계단 높이 타게 할건지 // 박스 콜라이더는 생각한대로 되는데 캡슐은 바닥의 구체 때문에 예상보다 더 높은 곳까지 오를 수 있음
_float fStepOffset = { 0.05f }; // 허용가능한 계단 높이, 작게 유지하는게 좋음
-
+ _uint iSubKind = { };
PSX::PxUserControllerHitReport* pCallback_HitReport = { }; // move가 호출될 때 호출 됨 // dll을 받는 각 프로젝트에서 구현해야함
PSX::PxControllerBehaviorCallback* pCallback_Behavior = { }; // move가 호출될 때 호출 됨 // dll을 받는 각 프로젝트에서 구현해야함
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
index 32fb7e138..ea9ef2e51 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
@@ -20,7 +20,10 @@ enum class PXMATERIAL {
DEFAULT,
END,
};
-
+enum class PXBODYSTATE {
+ DYNAMIC,
+ KINEMATIC,
+};
enum class MOUSEKEYSTATE { LBUTTON, RBUTTON, WBUTTON, XBUTTON };
enum class MOUSEMOVESTATE { X, Y, W };
diff --git a/Jusin154_Team3D/Engine/Public/RigidBody.h b/Jusin154_Team3D/Engine/Public/RigidBody.h
index 803574e02..b7007ca27 100644
--- a/Jusin154_Team3D/Engine/Public/RigidBody.h
+++ b/Jusin154_Team3D/Engine/Public/RigidBody.h
@@ -26,7 +26,7 @@ class ENGINE_DLL CRigidBody abstract : public CComponent
typedef struct tagRigidBody_Desc
{
-
+ _uint iSubKind = { };
}RIGIDBODY_DESC;
protected: