AI Mob Controller [01] | Dencho

AI Mob Controller [01]

My first try at making a dynamic AI designed for XR combat

The goal of this experiment was to learn what it takes to create an AI that operates within perspective of a XRPlayerControllers camera view.

First I wrote my own PID controller to control a Drones Rigidbody via physics to match a point in world space.

Adjusting the variables allowed to to appear more smooth and animated.

Different properties can lead to different behaviors.

Now we give it a gun. For learning.

Make sure it knows how to shoot. With even the recoil effecting the PID controller.

This can get pretty chaotic but, its good to know how many bodies I can simulate at a given time when you consider theres a PID controller for each Rigidbody.

Related