MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / MeshRoad

Method MeshRoad

Engine/source/environment/meshRoad.cpp:901–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899IMPLEMENT_CO_NETOBJECT_V1(MeshRoad);
900
901MeshRoad::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
930MeshRoad::~MeshRoad()
931{

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected