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

Method setTransform

Engine/source/environment/waterBlock.cpp:591–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591void WaterBlock::setTransform( const MatrixF &mat )
592{
593 // If our transform changes we need to recalculate the
594 // per vertex depth/shadow info. Would be nice if this could
595 // be done independently of generating the whole VBIB...
596 Parent::setTransform( mat );
597
598 // We don't need to regen our vb anymore since we aren't calculating
599 // per vert depth/shadow on the cpu anymore.
600 //if ( oldMat != mObjToWorld )
601 // mGenerateVB = true;
602
603 // Keep mWaterPlane up to date.
604 mWaterFogData.plane.set( 0, 0, 1, -getPosition().z );
605}
606
607void WaterBlock::setScale( const Point3F &scale )
608{

Callers 1

buildPolyListMethod · 0.45

Calls 2

getPositionFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected