нужно сделать так, чтобы камера смотрела в ту сторону куда смотрит пушка, ну вращение камеры за пушкой
from ursina import *
def update(): global rotation_gun if held_keys['e']: player.y+=0.05 if held_keys['q']: player.y-=0.05 if held_keys['z']: smoka.rotation_z+=1 if held_keys['x']: smoka.rotation_z-=1
def input(key): if key=='escape': quit()
x = -11.2 y = 1.93 z = -5.3
x1 = 0 y1 = 3 z1 = 0
rotation_gun = 0
app = Ursina()
smoka = Entity(model='smokaM0.obj', scale=0.01, texture='Smoky_m0.png', position=(x1, y1, z1)) tank = Entity(model='Wasp_0123.obj', scale=0.01, texture='Wasp_0.jpg', position=(x, y, z))