Exemplo n.º 1
0
def getGunMatrixProvider(vehicleTypeDescriptor, turretMatrixProvider,
                         gunPitchMatrixProvider):
    gunOffset = vehicleTypeDescriptor.turret['gunPosition']
    return MatrixProviders.product(
        gunPitchMatrixProvider,
        MatrixProviders.product(mathUtils.createTranslationMatrix(gunOffset),
                                turretMatrixProvider))
Exemplo n.º 2
0
def getTurretMatrixProvider(vehicleTypeDescriptor, vehicleMatrixProvider,
                            turretYawMatrixProvider):
    turretOffset = vehicleTypeDescriptor.chassis[
        'hullPosition'] + vehicleTypeDescriptor.hull['turretPositions'][0]
    return MatrixProviders.product(
        turretYawMatrixProvider,
        MatrixProviders.product(
            mathUtils.createTranslationMatrix(turretOffset),
            vehicleMatrixProvider))
Exemplo n.º 3
0
def getGunMatrixProvider(vehicleTypeDescriptor, turretMatrixProvider, gunPitchMatrixProvider):
    gunOffset = vehicleTypeDescriptor.turret['gunPosition']
    return MatrixProviders.product(gunPitchMatrixProvider, MatrixProviders.product(mathUtils.createTranslationMatrix(gunOffset), turretMatrixProvider))
Exemplo n.º 4
0
def getTurretMatrixProvider(vehicleTypeDescriptor, vehicleMatrixProvider, turretYawMatrixProvider):
    turretOffset = vehicleTypeDescriptor.chassis['hullPosition'] + vehicleTypeDescriptor.hull['turretPositions'][0]
    return MatrixProviders.product(turretYawMatrixProvider, MatrixProviders.product(mathUtils.createTranslationMatrix(turretOffset), vehicleMatrixProvider))