How can I make NPC movement have inertia?

Hello. I am making an enemy AI that walks around the map, patrolling random areas.

I have modified the player ControlModule to give the player’s movement some inertia.

image

I was wondering if I can do anything similar with an NPC? When it walks around it takes turns very sharply, which is what I intend to fix with this. Thanks for the help.

2 Likes

i dont know , maybe just adjust the path , it seems like a simpler solution

1 Like

I’m not sure if this would work, but try turning on CustomPhysicalProperties for every BasePart in the NPC and setting the density to somewhere between 0.01 to 0.05.

EDIT: I just tested it, and it seems to work and the only problem I see with this is running into objects since the NPC won’t follow the path exactly due to slight strafing.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.