MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / unpackUpdate

Method unpackUpdate

Engine/source/environment/waterBlock.cpp:116–137  ·  view source on GitHub ↗

----------------------------------------------------------------------------- unpackUpdate -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

114// unpackUpdate
115//-----------------------------------------------------------------------------
116void WaterBlock::unpackUpdate(NetConnection* con, BitStream* stream)
117{
118 Parent::unpackUpdate(con, stream);
119
120 F32 gridSize = mGridElementSize;
121 stream->read( &mGridElementSize );
122 if ( gridSize != mGridElementSize )
123 mGenerateVB = true;
124
125 if( stream->readFlag() ) // UpdateMask
126 {
127 Point3F scale;
128 mathRead( *stream, &scale );
129
130 setScale( scale );
131
132 MatrixF objToWorld;
133 stream->readAffineTransform( &objToWorld );
134
135 setTransform( objToWorld );
136 }
137}
138
139//-----------------------------------------------------------------------------
140// Setup vertex and index buffers

Callers

nothing calls this directly

Calls 4

mathReadFunction · 0.85
readFlagMethod · 0.80
readAffineTransformMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected