def __startWGPhysics(self): if not hasattr(self.filter, 'setVehiclePhysics'): return typeDescr = self.typeDescriptor physics = BigWorld.WGVehiclePhysics() physics_shared.initVehiclePhysics(physics, typeDescr) arenaMinBound, arenaMaxBound = (-10000, -10000), (10000, 10000) physics.setArenaBounds(arenaMinBound, arenaMaxBound) physics.enginePower = typeDescr.physics['enginePower'] / 1000.0 physics.owner = weakref.ref(self) physics.staticMode = False physics.movementSignals = 0 physics.damageDestructibleCb = None physics.destructibleHealthRequestCb = None self.filter.setVehiclePhysics(physics) physics.visibilityMask = ArenaType.getVisibilityMask(BigWorld.player().arenaTypeID >> 16) yaw, pitch = decodeGunAngles(self.gunAnglesPacked, typeDescr.gun['pitchLimits']['absolute']) self.filter.syncGunAngles(yaw, pitch) self.appearance.fashion.placingCompensationMatrix = self.filter.placingCompensationMatrix
def __startWGPhysics(self): typeDescr = self.typeDescriptor self.wgPhysics = BigWorld.WGVehiclePhysics() physics = self.wgPhysics physics_shared.initVehiclePhysics(physics, typeDescr) arenaMinBound, arenaMaxBound = (-10000, -10000), (10000, 10000) physics.setArenaBounds(arenaMinBound, arenaMaxBound) physics.enginePower = typeDescr.physics['enginePower'] / 1000.0 physics.owner = weakref.ref(self) physics.staticMode = False physics.movementSignals = 0 physics.damageDestructibleCb = None physics.destructibleHealthRequestCb = None self.filter.setVehiclePhysics(physics) player = BigWorld.player() physics.visibilityMask = ArenaType.getVisibilityMask(player.arenaTypeID >> 16) yaw, pitch = decodeGunAngles(self.gunAnglesPacked, typeDescr.gun['pitchLimits']['absolute']) self.filter.syncGunAngles(yaw, pitch) self.appearance.fashion.placingCompensationMatrix = self.filter.placingCompensationMatrix
def __startWGPhysics(self): if not hasattr(self.filter, 'setVehiclePhysics'): return else: typeDescr = self.typeDescriptor physics = BigWorld.WGVehiclePhysics() physics_shared.initVehiclePhysics(physics, typeDescr, None, False) arenaMinBound, arenaMaxBound = (-10000, -10000), (10000, 10000) physics.setArenaBounds(arenaMinBound, arenaMaxBound) physics.enginePower = typeDescr.physics['enginePower'] / 1000.0 physics.owner = weakref.ref(self) physics.staticMode = False physics.movementSignals = 0 physics.damageDestructibleCb = None physics.destructibleHealthRequestCb = None self.filter.setVehiclePhysics(physics) physics.visibilityMask = ArenaType.getVisibilityMask(BigWorld.player().arenaTypeID >> 16) yaw, pitch = decodeGunAngles(self.gunAnglesPacked, typeDescr.gun['pitchLimits']['absolute']) self.filter.syncGunAngles(yaw, pitch) self.__speedInfo.set(self.filter.speedInfo) return