-------------------------------------------------------------------------------- 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 ------------------------------------------------------------------------------
| 1543 | // turretTransformMatrix - The transform matrix of the turret on the EveMobile object |
| 1544 | // -------------------------------------------------------------------------------- |
| 1545 | void 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: |