Radial Force vs AI Move To

So this is a super specific question that I haven’t found any answers online about. I have a series of bad guys I’d like to get sucked into a black hole as they chase the player, essentially. But if they’re moving, they aren’t affected by the radial force for some reason. The player is, but not them.

Each bad guy is controlled a really basic way in concept, though it’s a little complex in execution so I’ll only show the relevant stuff for now. Basically just ‘AI Move To’. For reference, the enemy is called ‘Bonker’ as a filler name.

Making Bonker a physics body causes it to wig out and go absolutely nuts, so I can’t do that. I’ve already checked that I don’t have ‘ignore radial force’ checked. Weirdly enough, radial impulses work just fine on it, but radial force does absolutely nothing as long as it’s moving. Once it’s stopped, it affects it like it would affect anything else from what I can tell. I tested this by disconnecting the ‘Event BeginPlay’ from the rest and dragging them around in Simulate Mode.

Any idea on what the problem is or how to go about solving it?

Hi there,

Think your pawn is physics but AI is not and it’s ok.

Why? The radial force is actually is in charge when AI pawn moves into the zone all times (moving and stopped) however during movement (AI Path Follow) on each tick velocity is overridden even though the force is pulling since its later on tick.

There is multiple solution to it however with physics field I don’t think will work nicely with movement component.

My suggestion is creating a zone (collision) with addition to radial force, radial force for just phyics objectes and for the pawns (AI) → OnCollisionEnter->MovementComponent → OnTick (AddForce (x) ->Direction(CenterLocation)

This will simply make the kinematic simulation as you desire without any issues. You can also scale the force applied with the mass of the object in order to have more beleivable kinematic simulation.

If you simulate kinematics nicely on the zone manually than you don’t actually need a force field at all.

Let me know if it helps.