Ai actors with physics, stuck in place. Only if multiple Ai actors in world.
Hi not sure if this is a bug or my doing.
I created a tank with a USimpleWheeledVehicle movement component and PhysxVehicle.VehicleWheel. I use SetDriveTorque() for forward/back movement and AddActorLocalRotation() (with teleport physics enabled) to rotate.
In my game Ai tanks are to move towards the player (this works with one Ai tank). However with two or more Ai tanks only one can move and the rest are stuck in place and jitter around as they try and move. This only happens after a tank rotates. If I destroy the moving tank another Ai tank then starts moving.
After looking for answers I tried using StopMovementImmediately(), this allows all tanks to move freely but very slow. So would like a better solution.
Anyone know why this is happening or how to fix it?
Follow this question
Once you sign in you will be able to subscribe for any updates here