I’m currently working on a RTS game where the player controls everything through the games UI. What is the best way to handle the control of the game characters? I’ve got the script moving them around and animating but I’m having issues with the physics interaction.
Third person controller attached to each character with camera disabled maybe?
Is there a better way to handle this?
In the standard assest there is a prefab “AIThirdPersonController”, maybe that could be what you’re looking for?
The normal way for an RTS is not to have physics. It’s normally faked in some way.
You can use physics, but it becomes pretty expensive once you have a few hundred agents on the board.
AIThirdPersonController runs on top of ThirdPersonController, which uses root motion, has jump and run, and also scans environment with raycasts for autocrouch. Also, it is a rigidbody.
You probably don’t want something like that in any RTS, especially for vehicles.