Skip to content

Commit

Permalink
DirectX12 Collision
Browse files Browse the repository at this point in the history
  • Loading branch information
moonwho101 committed Sep 17, 2024
1 parent 56f6d2f commit b3fe760
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ProcessModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct CUSTOMVERTEX { FLOAT X, Y, Z; DWORD COLOR; };
float sin_table[361];
float cos_table[361];

int src_collide[MAX_NUM_VERTICES];
int src_collide[MAX_NUM_QUADS];

//LPDIRECT3DVERTEXBUFFER9 g_pVB = NULL; // Buffer to hold vertices
//LPDIRECT3DVERTEXBUFFER9 g_pVBBoundingBox = NULL; // Buffer to hold vertices
Expand Down
4 changes: 2 additions & 2 deletions src/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ D3DVALUE angy = 60;

XMFLOAT3 modellocation;
CAMERAFLOAT cameraf;
extern int src_collide[MAX_NUM_VERTICES];
extern int src_collide[MAX_NUM_QUADS];

extern LEVELMOD* levelmodify;
extern SWITCHMOD* switchmodify;
Expand Down Expand Up @@ -144,7 +144,7 @@ void InitDS()
CLoadWorld* pCWorld;
pCWorld = new CLoadWorld();

for (int i = 0; i < MAX_NUM_VERTICES; i++)
for (int i = 0; i < MAX_NUM_QUADS; i++)
{
//src_on[i] = 1;
src_collide[i] = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/col_response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ float FastDistance(float fx, float fy, float fz);
void calculate_block_location();
extern int countboundingbox;
extern D3DVERTEX2 boundingbox[2000];
extern int src_collide[MAX_NUM_VERTICES];
extern int src_collide[MAX_NUM_QUADS];

extern int collideWithBoundingBox;
extern int endc;
Expand Down

0 comments on commit b3fe760

Please sign in to comment.