MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetTargetScale

Method SetTargetScale

trinity/Eve/Turret/EveTurretSet.cpp:3723–3730  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Sets the scale of the firing effect using the target's radius. --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3721// Sets the scale of the firing effect using the target's radius.
3722// --------------------------------------------------------------------------------
3723void EveTurretSet::SetTargetScale()
3724{
3725 if( m_firingEffect )
3726 {
3727 float radius = m_target->GetRadius();
3728 m_firingEffect->SetScaleByRadius( radius );
3729 }
3730}
3731
3732// --------------------------------------------------------------------------------
3733// Description:

Callers

nothing calls this directly

Calls 2

SetScaleByRadiusMethod · 0.80
GetRadiusMethod · 0.45

Tested by

no test coverage detected