Megafunk / MassSample

My understanding of Unreal Engine 5's experimental ECS plugin with a small sample project.
MIT License
681 stars 112 forks source link

Mass Traffic - Smoothly moving a vehicle into an "emergency" lane and back to ZoneGraph lane #62

Open janjilecek opened 4 months ago

janjilecek commented 4 months ago

Hey guys, I am trying to move a Mass traffic vehicle away from the ZoneGraph it is following, but only for a brief time - the vehicle needs to move away for more important vehicles to go through the middle of the road. How would you go about this? So far I tried to use a combination of changing the lateral offset in the UMassTrafficVehicleControlProcessor and changing the MoveTarget, but I am struggling with interpolation. Maybe it would be better to simply use signals+state tree? But NPVs don't have StateTree support.. What would be the best way to move the car out of the way and then back to the ZoneShape lane?