ye you will be able to use wasd to control tank’s movement, while using your mouse to aim and using space to fire
and shift itself is for disabling mouse-control when pressed
because it return the yaw and pitch relatively to the ship instead of the overworld
VS computer + Player detector from Advanced peripheral mod
Discord____Pov__Control_tanks_turret_and_planes_just_with_your_mouse____Valkyrien_Skies_-_Google_Chrome_2023_6_4_20_27_01.png
mouse control pitching √
@kamitojaeger idk if u know but cbc is adding its own optical control thing so itll be even easier than this later on
yes I do know that. But guess that will be in long future update
BTW @kamitojaeger you can read turret pitch and yaw directly from it with a Block Reader from Advanced Peripherals
I do know Advanced Peripherals, and I use the player detector in it to get the player’s yaw and pitch
But as far as I know there is not a block reader that can read bearing’s pitch and yaw in Advanced Peripherals
But there is a digital adapter in Create Craft & Addition mod that can read bearing’s angle
local reader = peripheral.find("blockReader")
os.startTimer(0.05)
while true do
local event = os.pullEvent()
if event == "timer" then
os.startTimer(0.1)
local NBT = reader.getBlockData()
--print("Looking at "..NBT)
print("Start")
print("Pitch = "..NBT.CannonPitch..", Yaw = "..NBT.CannonYaw)
elseif event == "key" then
print("exiting")
break
end
end
Thanks. I might tried use block reader tomorrow after work or this weekend
If I were to do it, I would at least attach it directly to the gun’s rotational input
and I can fake it as a fire control radar if I’m building an anti aircraft vehicle
7 replies not shown · View on Discord
image.png