@@ -93,7 +93,7 @@ void CCallBack_Playable_HitReport::onShapeHit(const PSX::PxControllerShapeHit& h
|
|||||||
}
|
}
|
||||||
vForceDir.normalize();
|
vForceDir.normalize();
|
||||||
|
|
||||||
float forceMagnitude = PSX::PxClamp(fLength * 200.f, 0.f, 500.f);
|
float forceMagnitude = PSX::PxClamp(fLength * 40.f, 0.f, 100.f);
|
||||||
PSX::PxRigidBodyExt::addForceAtPos(*pDynamic, vForceDir * forceMagnitude, { (_float)hit.worldPos.x, (_float)hit.worldPos.y, (_float)hit.worldPos.z }, PSX::PxForceMode::eFORCE);
|
PSX::PxRigidBodyExt::addForceAtPos(*pDynamic, vForceDir * forceMagnitude, { (_float)hit.worldPos.x, (_float)hit.worldPos.y, (_float)hit.worldPos.z }, PSX::PxForceMode::eFORCE);
|
||||||
pTargetActorData->pOwner->OnCollision();
|
pTargetActorData->pOwner->OnCollision();
|
||||||
dynamic_cast<CPlayer*>(m_pController->Get_Owner())->Set_OpenDoor(true);
|
dynamic_cast<CPlayer*>(m_pController->Get_Owner())->Set_OpenDoor(true);
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ void CCallBack_Troll_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit)
|
|||||||
//pDynamic->setRigidBodyFlag(PSX::PxRigidBodyFlag::eKINEMATIC, false);
|
//pDynamic->setRigidBodyFlag(PSX::PxRigidBodyFlag::eKINEMATIC, false);
|
||||||
PSX::PxVec3 vCompressedDir = -vWorldNormal;
|
PSX::PxVec3 vCompressedDir = -vWorldNormal;
|
||||||
vCompressedDir.normalize();
|
vCompressedDir.normalize();
|
||||||
pDynamic->addForce(vCompressedDir * fLength * 1000.f, PSX::PxForceMode::eFORCE);
|
pDynamic->addForce(vCompressedDir * fLength * 100.f, PSX::PxForceMode::eIMPULSE);
|
||||||
}break;
|
}break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
|
|||||||
_bool bStartCinematic = { true };
|
_bool bStartCinematic = { true };
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#ifdef 기무리
|
#ifdef 기무리
|
||||||
bStartCinematic = false;
|
bStartCinematic = true;
|
||||||
#elif 진우
|
#elif 진우
|
||||||
bStartCinematic = true;
|
bStartCinematic = true;
|
||||||
#elif Bin
|
#elif Bin
|
||||||
@@ -363,9 +363,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
|||||||
isReady_Hogwart = false;
|
isReady_Hogwart = false;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 기무리
|
#ifdef 기무리
|
||||||
isReady_Background = false;
|
isReady_Background = true;
|
||||||
isReady_Hogsmeade = false;
|
isReady_Hogsmeade = true;
|
||||||
isReady_Hogwart = false;
|
isReady_Hogwart = true;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 나
|
#ifdef 나
|
||||||
isReady_Background = false;
|
isReady_Background = false;
|
||||||
@@ -1243,8 +1243,8 @@ void CLevel_GamePlay::ResetLevel_Environment()
|
|||||||
|
|
||||||
m_pLight->Get_Component<CTransform>()->RotationQ(XMVectorSet(0.581f, 0.239f, -0.183f, 0.757f));
|
m_pLight->Get_Component<CTransform>()->RotationQ(XMVectorSet(0.581f, 0.239f, -0.183f, 0.757f));
|
||||||
m_pLight->Get_Component<CTransform>()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
m_pLight->Get_Component<CTransform>()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||||
m_pGameInstance->Set_Environment(_float3(0.54300f, 0.40100f, 4.00000f), _float(0.5f), _float2(0.019f, 0.161f),
|
m_pGameInstance->Set_Environment(_float3(0.54300f, 0.40100f, 4.00000f), _float(0.5f), _float2(0.054f, 0.161f),
|
||||||
_float2(2.300f, 10.000f), _float4(0.0047f, 0.0018f, 0.0018f, 0.0018f),
|
_float2(2.300f, 10.000f), _float4(0.0032f, 0.0018f, 0.0018f, 0.0018f),
|
||||||
_float4(2.f, 1.f, 1.f, 1.f), _float3(-10.f, -10.f, -50.f), _float3(10.f, 10.f, 50.f));
|
_float4(2.f, 1.f, 1.f, 1.f), _float3(-10.f, -10.f, -50.f), _float3(10.f, 10.f, 50.f));
|
||||||
m_pLight->Capture_PreShadow();
|
m_pLight->Capture_PreShadow();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -581,7 +581,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
#endif //
|
#endif //
|
||||||
#ifdef 기무리
|
#ifdef 기무리
|
||||||
isLoad_Background = true;
|
isLoad_Background = true;
|
||||||
isLoad_Hogwart = false;
|
isLoad_Hogwart = true;
|
||||||
isLoad_UI_SEQUANTIAL = false;
|
isLoad_UI_SEQUANTIAL = false;
|
||||||
isLoad_NPC = false;
|
isLoad_NPC = false;
|
||||||
isLoad_Monster = true;
|
isLoad_Monster = true;
|
||||||
|
|||||||
@@ -225,16 +225,16 @@ HRESULT CTroll::Render()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
//if (true == m_pCharacter_Controller->IsActive()) {
|
if (true == m_pCharacter_Controller->IsActive()) {
|
||||||
// if (FAILED(m_pCharacter_Controller->Render())) {
|
if (FAILED(m_pCharacter_Controller->Render())) {
|
||||||
// return E_FAIL;
|
return E_FAIL;
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
//else {
|
else {
|
||||||
// if (FAILED(m_pRigidBody->Render())) {
|
if (FAILED(m_pRigidBody->Render())) {
|
||||||
// return E_FAIL;
|
return E_FAIL;
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (0.f < m_fDeadRatio) {
|
if (0.f < m_fDeadRatio) {
|
||||||
@@ -531,7 +531,7 @@ HRESULT CTroll::Ready_Components()
|
|||||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||||
Desc.bAutoStepping = { false };
|
Desc.bAutoStepping = { false };
|
||||||
Desc.fStepOffset = { 0.02f };
|
Desc.fStepOffset = { 0.02f };
|
||||||
Desc.fRadius = 1.2f;
|
Desc.fRadius = 1.f;
|
||||||
Desc.fHeight = 1.5f;
|
Desc.fHeight = 1.5f;
|
||||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Troll_HitReport::Create();
|
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Troll_HitReport::Create();
|
||||||
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Monster_Behavior::Create();
|
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Monster_Behavior::Create();
|
||||||
|
|||||||
Reference in New Issue
Block a user