Continue block collisions
This commit is contained in:
parent
f1bbb1e1b6
commit
011cd891c1
5 changed files with 99 additions and 12 deletions
10
renderer.h
10
renderer.h
|
@ -615,6 +615,16 @@ uint8_t _LCR_buildMapModel(void)
|
|||
S3L_model3DInit(LCR_renderer.mapVerts,0,LCR_renderer.mapTris,0,
|
||||
&LCR_renderer.mapModel);
|
||||
|
||||
// TEMPORARY FIX: this scales the map so that it better aligns with the
|
||||
// physics world -- dunno why it's not aligned by default, investigate (if it's
|
||||
// numerical errors then at least make this a const)
|
||||
LCR_renderer.mapModel.transform.scale.x =
|
||||
(S3L_F * 1009) / 1000;
|
||||
LCR_renderer.mapModel.transform.scale.y =
|
||||
LCR_renderer.mapModel.transform.scale.x;
|
||||
LCR_renderer.mapModel.transform.scale.z =
|
||||
LCR_renderer.mapModel.transform.scale.x;
|
||||
|
||||
for (int j = 0; j < LCR_currentMap.blockCount; ++j)
|
||||
{
|
||||
if ((j + 1) % LCR_SETTING_TRIANGLE_CULLING_PERIOD == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue