Crowd Motion follow Curve : shortcut taked

   1102   4   2
User Avatar
Member
271 posts
Joined: Oct. 2015
Offline
Hello,

I can't manage to make my character moving along all my curve path.
Because once there is a curve intersection, path tends to take shortcut.





Any of you have idea to manage these cases ?
cf. zipped project files
Thank you

Attachments:
crowd_walk.jpg (84.9 KB)
crowdMotionPathFollow.jpg (143.1 KB)
2025_02_27_walk_along.zip (2.0 MB)

User Avatar
Staff
795 posts
Joined: Oct. 2012
Offline
I've filed bug #144612 for this - I think the issue here is that if the closest point on the curve to the agent is one of the later sections, it will choose to take the shortcut
User Avatar
Member
271 posts
Joined: Oct. 2015
Offline
Hello cwhite, thank you for the log as bug.
Perhaps the curve direction (normal/tangent) can be used to push to the better direction ? Or a sort of custom index id to help to determine the way to go ?
User Avatar
Staff
795 posts
Joined: Oct. 2012
Offline
The SOP does have a notion of tracking the agent's progress along the curve, so it'll never go back to following an earlier section of the curve at an intersection like this. However, there isn't much stopping it from jumping to a later section of the curve, as in this scene. It may need some additional checks of neighbouring points to choose what should happen, rather than only following the closest point
User Avatar
Member
271 posts
Joined: Oct. 2015
Offline
Ok, thank you for your explanations, hope you'll be able to implement this in a future version.
  • Quick Links