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

Method updateMountPosition

Engine/source/forest/forestWindEmitter.cpp:561–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void ForestWindEmitter::updateMountPosition()
562{
563 AssertFatal( isClientObject(), "ForestWindEmitter::updateMountPosition - This should only happen on the client!" );
564
565 if ( !mHasMount || !mMountObject )
566 return;
567
568 MatrixF mat( true );
569 mat.setPosition( mMountObject->getPosition() );
570 Parent::setTransform( mat );
571}
572
573void ForestWindEmitter::onDeleteNotify(SimObject *object)
574{

Callers 1

processTickMethod · 0.80

Calls 2

setPositionMethod · 0.45
getPositionMethod · 0.45

Tested by

no test coverage detected