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

Method scale

Engine/source/gui/worldEditor/worldEditorSelection.cpp:502–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500//-----------------------------------------------------------------------------
501
502void WorldEditorSelection::scale(const VectorF & scale)
503{
504 for( iterator iter = begin(); iter != end(); ++ iter )
505 {
506 SceneObject* object = dynamic_cast< SceneObject* >( *iter );
507 if( !object )
508 continue;
509
510 VectorF current = object->getScale();
511 current.convolve(scale);
512
513 // clamp scale to sensible limits
514 current.setMax( Point3F( 0.01f ) );
515 current.setMin( Point3F( 1000.0f ) );
516
517 object->setScale(current);
518 }
519
520 mCentroidValid = false;
521}
522
523//-----------------------------------------------------------------------------
524

Callers

nothing calls this directly

Calls 12

beginFunction · 0.85
endFunction · 0.85
getColumnMethod · 0.80
Point3FClass · 0.50
getScaleMethod · 0.45
convolveMethod · 0.45
setMaxMethod · 0.45
setMinMethod · 0.45
setScaleMethod · 0.45
equalMethod · 0.45
getTransformMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected