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

Method UpdateTurretTransforms

trinity/Eve/Turret/EveTurretSet.cpp:1545–1554  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Updates the turret world and inv world matrices and validates the turret tata SeeAlso: UpdateAsyncronous, EveMobile::UpdateSyncronous Arguments: turretTransformMatrix - The transform matrix of the turret on the EveMobile object ------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1543// turretTransformMatrix - The transform matrix of the turret on the EveMobile object
1544// --------------------------------------------------------------------------------
1545void EveTurretSet::UpdateTurretTransforms( const Matrix* turretTransformMatrix )
1546{
1547 for( auto& turret : m_singleTurrets )
1548 {
1549 // first parent matrix (ship or station), then local matrix (locator position)
1550 turret.worldMatrix = turret.localMatrix * *turretTransformMatrix;
1551 // this validates this turret
1552 turret.valid = true;
1553 }
1554}
1555
1556// --------------------------------------------------------------------------------
1557// Description:

Callers 1

UpdateSyncronousMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected