i have a group of pawns moving toward character and i want to move character straight through pawns and have them slide to the side of the character as the character passes through them but still have them move toward character. i don’t know how i would begin doing this but if someone could point me in the right direction or give me some ideas i would greatly apreciate it.
Does your character control by AIcontroller?
I heard about there’s a Detour Crowd AI Controller ,which can handle things like having large number of pawn walk bypass each other
if you want to do this by manipulating the transform (will not be animation based, and will involve sliding)
-if you know the target location there is an VInterpTo()
(the position/location is a Vector) you should be able to get it by pulling off of any Vector3 (like location) and typing “interp”, it even allows you to modify the speed. though this has nearly cubic easing by default (really slow to start and stop but linear in the middle)
-there is also a direct Lerp()
which will enable you to get a Linear behavior, you still need to know the target destination.
both of these options return a Vector that you can plug into the Set node on the Location.
if you want to be a bit more explicit and not “necessarily” know the target location then we can get there a few different ways. this is kind of what I envision by your description (if this is not your intention then could you draw a picture for it doesn’t need to be amazing as mine is just a triangle going into the oval den):
the movement for the crowd could be done by moving each member of the crowd together, or it can be done by moving them individually. the individual crowd members could do a distance check (probably distance square to save the division), and if distance is under a chosen value then you want to get a vector that points away from the Player and move the Pawn in that direction, and I am presuming maintain the facing by the line from the Pawn to the Player.
thank you for replying. yes your drawing is accurate to what i was trying to describe. your post has helped me a lot and i think i can figure out what to do from here. thank you for replying and for the amazing drawing you supplied