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

Method onScaleChanged

Engine/source/T3D/tsStatic.cpp:904–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902}
903
904void TSStatic::onScaleChanged()
905{
906 Parent::onScaleChanged();
907
908 if (mPhysicsRep)
909 {
910 // If the editor is enabled delay the scale operation
911 // by a few milliseconds so that we're not rebuilding
912 // during an active scale drag operation.
913 if (gEditingMission)
914 mPhysicsRep->queueCallback(500, Delegate<void()>(this, &TSStatic::_updatePhysics));
915 else
916 _updatePhysics();
917 }
918
919 setMaskBits(ScaleMask);
920}
921
922void TSStatic::setTransform(const MatrixF& mat)
923{

Callers

nothing calls this directly

Calls 1

queueCallbackMethod · 0.80

Tested by

no test coverage detected