Skip to content

Commit fe288a7

Browse files
committed
Update1030
1 parent d0b2410 commit fe288a7

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

AABBColliderComponent.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ class CAABBColliderComponent : public CBoxColliderComponent
3232
CBoxColliderComponent::Update();
3333

3434
//回転を初期化する
35-
m_mtxWorld.m_af[0][0] = 1.0f;
36-
m_mtxWorld.m_af[0][1] = 0.0f;
37-
m_mtxWorld.m_af[0][2] = 0.0f;
38-
m_mtxWorld.m_af[1][0] = 0.0f;
39-
m_mtxWorld.m_af[1][1] = 1.0f;
40-
m_mtxWorld.m_af[1][2] = 0.0f;
41-
m_mtxWorld.m_af[2][0] = 0.0f;
42-
m_mtxWorld.m_af[2][1] = 0.0f;
43-
m_mtxWorld.m_af[2][2] = 1.0f;
35+
m_mtxWorldNext.m_af[0][0] = 1.0f;
36+
m_mtxWorldNext.m_af[0][1] = 0.0f;
37+
m_mtxWorldNext.m_af[0][2] = 0.0f;
38+
m_mtxWorldNext.m_af[1][0] = 0.0f;
39+
m_mtxWorldNext.m_af[1][1] = 1.0f;
40+
m_mtxWorldNext.m_af[1][2] = 0.0f;
41+
m_mtxWorldNext.m_af[2][0] = 0.0f;
42+
m_mtxWorldNext.m_af[2][1] = 0.0f;
43+
m_mtxWorldNext.m_af[2][2] = 1.0f;
4444
}
4545

4646
private:

KF_CollisionSystem.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ void CKFCollisionSystem::DrawCollider(void)
301301
for (auto pCol : m_alistCollider[DYNAMIC][COL_SPHERE])
302302
{
303303
if (!pCol->GetGameObject()->IsActive()) { continue; }
304-
D3DXVECTOR3 vPos = pCol->GetWorldPos();
304+
D3DXVECTOR3 vPos = pCol->GetWorldPosNext();
305305
float fRadius = ((CSphereColliderComponent*)pCol)->GetRadius();
306306
D3DXMATRIX mtx,mtxPos,mtxScale;
307307
D3DXMatrixIdentity(&mtx);
@@ -316,7 +316,7 @@ void CKFCollisionSystem::DrawCollider(void)
316316
for (auto pCol : m_alistCollider[STATIC][COL_SPHERE])
317317
{
318318
if (!pCol->GetGameObject()->IsActive()) { continue; }
319-
auto vPos = pCol->GetWorldPos();
319+
auto vPos = pCol->GetWorldPosNext();
320320
float fRadius = ((CSphereColliderComponent*)pCol)->GetRadius();
321321
D3DXMATRIX mtx, mtxPos, mtxScale;
322322
D3DXMatrixIdentity(&mtx);
@@ -332,7 +332,7 @@ void CKFCollisionSystem::DrawCollider(void)
332332
for (auto pCol : m_alistCollider[DYNAMIC][COL_AABB])
333333
{
334334
if (!pCol->GetGameObject()->IsActive()) { continue; }
335-
auto vPos = pCol->GetWorldPos();
335+
auto vPos = pCol->GetWorldPosNext();
336336
auto vHalfSize = ((CAABBColliderComponent*)pCol)->GetHalfSize();
337337
D3DXMATRIX mtx, mtxPos, mtxScale;
338338
D3DXMatrixIdentity(&mtx);
@@ -347,7 +347,7 @@ void CKFCollisionSystem::DrawCollider(void)
347347
for (auto pCol : m_alistCollider[STATIC][COL_AABB])
348348
{
349349
if (!pCol->GetGameObject()->IsActive()) { continue; }
350-
auto vPos = pCol->GetWorldPos();
350+
auto vPos = pCol->GetWorldPosNext();
351351
auto vHalfSize = ((CAABBColliderComponent*)pCol)->GetHalfSize();
352352
D3DXMATRIX mtx, mtxPos, mtxScale;
353353
D3DXMatrixIdentity(&mtx);

KF_Framework_Debug.exe

0 Bytes
Binary file not shown.

boxColliderComponent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
list<CKFVec3> CBoxColliderComponent::GetWorldVertexes(void)
1919
{
2020
auto& listVtx = GetLocalVertexes();
21-
const auto& mtxWorld = GetMatrixWorld();
21+
const auto& mtxWorld = GetMatrixWorldNext();
2222
for (auto itr = listVtx.begin(); itr != listVtx.end(); ++itr)
2323
{
2424
*itr = CKFMath::Vec3TransformCoord(*itr, mtxWorld);

manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ bool CManager::Init(HINSTANCE hInstance, HWND hWnd, BOOL bWindow)
141141
m_pFade = CFade::Create();
142142

143143
//初期モード設定
144-
SetMode(new CModeDemo);
144+
SetMode(new CModeEditor);
145145

146146
return true;
147147
}

0 commit comments

Comments
 (0)