Download

Newbie trying to rotate a Character to face a specific direction

Hey everyone, I’m a student trying to make an NPC character for one of my games.

Right now, I’m trying to get him to turn to a specific direction when a condition is satisfied, but it should look like a natural turn and not an instantaneous one. Any advice on how I can go about doing this? I’ve never tried anything like it before.

Hi Soul_Martini

How do you create your NPC script ?

You should take a look at the “BehaviorTree_Class”. This class already implement some features which could be useful for you maybe.

Hey there. I’ll take a look at it, thanks. I’m just using the Event Graph to program the NPC’s behaviour currently.