From c80c6b3d176ff5a6ff9e81f05200f37ad69f5f0b Mon Sep 17 00:00:00 2001 From: Rtch90 Date: Tue, 14 Nov 2017 19:57:46 +0000 Subject: [PATCH] [Fix] Fixed the wheels. --- src/sbre/models.cpp | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/sbre/models.cpp b/src/sbre/models.cpp index de76567..084164c 100644 --- a/src/sbre/models.cpp +++ b/src/sbre/models.cpp @@ -98,7 +98,10 @@ static PlainVertex nwunitvtx1[] = { static CompoundVertex nwunitvtx2[] = { { VTYPE_ANIMHERM, { 8, 10, 12, 13, AFUNC_GFLAP } }, /* 20, flap paths. */ { VTYPE_ANIMHERM, { 9, 11, 12, 13, AFUNC_GFLAP } }, - { VTYPE_ANIMLIN, { 2, 1, static_cast(-1), static_cast(-1), AFUNC_GEAR } }, /* Gear y axis. */ + /* Gear y axis. */ + { VTYPE_ANIMLIN, { 2, 1, static_cast(-1), static_cast(-1), AFUNC_GEAR } }, + /* Gear z axis. */ + { VTYPE_CROSS, { 0, 22, static_cast(-1),static_cast(-1),static_cast(-1) } }, }; static uint16 nwunitdata[] = { @@ -111,12 +114,12 @@ static uint16 nwunitdata[] = { // PTYPE_CYLINDER, 3, 8, 6, 7, 0, 1000, - PTYPE_SUBOBJECT, 0x8000, SUB_NOSEWHEEL, 14, 22, 2, 100, + PTYPE_SUBOBJECT, 0x8000, SUB_NOSEWHEEL, 14, 22, 23, 100, PTYPE_END, }; -static Model nwunitmodel = { 1.0f, 15, nwunitvtx1, 20, 3, nwunitvtx2, +static Model nwunitmodel = { 1.0f, 15, nwunitvtx1, 20, 4, nwunitvtx2, 0, 0, 0, 0, nwunitdata, 0 }; @@ -161,8 +164,11 @@ static PlainVertex mwunitvtx1[] = { static CompoundVertex mwunitvtx2[] = { { VTYPE_ANIMHERM, { 8, 10, 12, 13, AFUNC_GFLAP } }, /* 20, flap paths. */ - { VTYPE_ANIMHERM, { 9, 11, 12, 13, AFUNC_GFLAP } }, - { VTYPE_ANIMLIN, { 2, 1, static_cast(-1), static_cast(-1), AFUNC_GEAR } }, /* Gear y axis. */ + { VTYPE_ANIMHERM, { 9, 11, 12, 13, AFUNC_GFLAP } }, + /* Gear y axis. */ + { VTYPE_ANIMLIN, { 2, 1, static_cast(-1), static_cast(-1), AFUNC_GEAR } }, + /* Gear z axis. */ + { VTYPE_CROSS, { 0, 22, static_cast(-1),static_cast(-1),static_cast(-1) } }, }; static uint16 mwunitdata[] = { @@ -175,12 +181,12 @@ static uint16 mwunitdata[] = { // PTYPE_CYLINDER, 3, 8, 6, 7, 0, 1000, - PTYPE_SUBOBJECT, 0x8000, SUB_MAINWHEEL, 14, 22, 2, 100, + PTYPE_SUBOBJECT, 0x8000, SUB_MAINWHEEL, 14, 22, 23, 100, PTYPE_END, }; -static Model mwunitmodel = { 1.0f, 15, mwunitvtx1, 20, 3, mwunitvtx2, +static Model mwunitmodel = { 1.0f, 15, mwunitvtx1, 20, 4, mwunitvtx2, 0, 0, 0, 0, mwunitdata, 0 };