Turret is spinning rogue

whenever i point my tank to sky or my own tank the turret begins to act rogue an goes completely nuts but only spinning no other problem please help me ASAP THANK YOU

Could I see your code?

How to send that

BattleTank.zip (9.4 KB)

Hey teacher please check my code and respond at the earliest Sir

And i also have another problem Sir.
When ever i try to move my mouse and focus the back side landscape of my tank the mouse is just acting weird

teacher help me find the problem

Sorry I was a little busy the other day. I’m not seeing anything unusual about your code. Could you send the whole project?
If you’re using git that would be preferable otherwise could you use File > Paclage Project > Zip Up Project in Unreal?

Sir i solved most of the problem myself but only one is remaining whenever i aim at my own tank the turret spins rogue again other thaan this i solved all the problem

Tell me a way to tell the Line tracer to ignore my own tank

First off, congrats! :slight_smile:

If you’re talking about the line trace from the Player Controller
https://docs.unrealengine.com/en-US/API/Runtime/Engine/FCollisionQueryParams/__ctor/3/index.html

FCollisionQueryParams Params(NAME_None, false, GetPawn());

Then add Params to the end of the arguments for LineTraceSingleByChannel.

Thanks teacher that solved it

Actually sir,its not the pawn that it hits it the world ground that it hits so still the problem occurs

In that case could you send me your project as described here?

Sir its not uploading
Suggest any other way

Use a service like Google Drive or Dropbox.

Privacy & Terms