Ejemplo n.º 1
0
def getGunMatrixProvider(vehicleTypeDescriptor, turretMatrixProvider,
                         gunPitchMatrixProvider):
    gunOffset = vehicleTypeDescriptor.turret['gunPosition']
    return MatrixProviders.product(
        gunPitchMatrixProvider,
        MatrixProviders.product(mathUtils.createTranslationMatrix(gunOffset),
                                turretMatrixProvider))
Ejemplo 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))
Ejemplo n.º 3
0
def getGunMatrixProvider(vehicleTypeDescriptor, turretMatrixProvider, gunPitchMatrixProvider):
    gunOffset = vehicleTypeDescriptor.turret['gunPosition']
    return MatrixProviders.product(gunPitchMatrixProvider, MatrixProviders.product(mathUtils.createTranslationMatrix(gunOffset), turretMatrixProvider))
Ejemplo 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))