| 899 | IMPLEMENT_CO_NETOBJECT_V1(MeshRoad); |
| 900 | |
| 901 | MeshRoad::MeshRoad() |
| 902 | : mTextureLength( 5.0f ), |
| 903 | mBreakAngle( 3.0f ), |
| 904 | mWidthSubdivisions( 0 ), |
| 905 | mPhysicsRep( NULL ) |
| 906 | { |
| 907 | mConvexList = new Convex; |
| 908 | |
| 909 | // Setup NetObject. |
| 910 | mTypeMask |= StaticObjectType | StaticShapeObjectType; |
| 911 | mNetFlags.set(Ghostable); |
| 912 | |
| 913 | mMatInst[Top] = NULL; |
| 914 | mMatInst[Bottom] = NULL; |
| 915 | mMatInst[Side] = NULL; |
| 916 | mTypeMask |= TerrainLikeObjectType; |
| 917 | for (U32 i = 0; i < SurfaceCount; i++) |
| 918 | { |
| 919 | mVertCount[i] = 0; |
| 920 | mTriangleCount[i] = 0; |
| 921 | } |
| 922 | |
| 923 | INIT_ASSET(TopMaterial); |
| 924 | INIT_ASSET(BottomMaterial); |
| 925 | INIT_ASSET(SideMaterial); |
| 926 | |
| 927 | mSideProfile.mRoad = this; |
| 928 | } |
| 929 | |
| 930 | MeshRoad::~MeshRoad() |
| 931 | { |