AnswerBun.com

Tank / turret animations

Game Development Asked by lilKriT on November 2, 2021

I don’t know if this question is more of Blender / 3D or gamedev / Unreal question, but I decided to ask here first.

What I want to do is make a character, simple robot. The bottom part rides around on wheels, controlled by keyboard, while the top part is a turret that turns towards player cursor (which works as a crosshair).

I made the model in blender, using only two bones, one for the bottom part and one for the turret. I created 4 poses for aiming each direction.
Then, in Unreal, I created 2D aim offset (as I only need one dimension). And after some coding, it works… almost. When I aim forward, and then to the right, it transitions, nice. Then towards the back, also works. But if I then move to the left, instead of rotating extra 90 degrees, the turrent rotates back forward and then to the left.

How can I fix it? Is there some settings in Unreal that I could use, or should I create the model in blender differently? Is the whole rig / bones solution not gonna work?

TLDR: I want the turret on my robot to rotate infinitely to whatever I aim at.

Add your own answers!

Related Questions

Convert a string to a gameobject name

1  Asked on December 1, 2021 by stormzy18

     

Jumping up quicker? (Paper Mario style jump)

1  Asked on December 1, 2021 by spottel

       

A* Pathfinding Finding One of Many Goals

1  Asked on November 29, 2021 by user6256

 

Wheel rotation for a raycast car in Unity?

1  Asked on November 29, 2021 by john-545

       

Unity “scrape away” effect

0  Asked on November 24, 2021 by darren-swords

 

Initial setting of camera and ppu to match playing table

1  Asked on November 21, 2021 by zibelas

 

LibGDX – Tilemap Wall Collision Detection Issues

2  Asked on November 20, 2021 by james-stoddern

     

Tilemaps not showing up on Android build

1  Asked on November 18, 2021 by jcorretjer

   

Unity: Sprite stretch issue

1  Asked on November 14, 2021 by tikeb

     

Unity UI, how to hide on play

2  Asked on November 12, 2021

 

Alternative path not working

1  Asked on November 12, 2021 by dsngl-tibor

     

Unity – Understanding the SRP batcher

2  Asked on November 12, 2021 by majs

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir