-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2D Examples. #4
2D Examples. #4
Conversation
pjohalloran
commented
Jan 16, 2016
- Moved existing examples into a 3D folder.
- Added basic and intermediate 2D examples.
- Added 2D version of the obstacle advanced example.
I am having a bit of trouble with the neighbour set of examples. I wonder @ricardojmendez if you have time, would you mind giving me some advice on how to improve the configuration of them to correctly demonstrate alignment, cohesion and seperation? |
Hi @pjohalloran, A couple notes after a quick review:
Overall, I'd relax the values a bit. Give them a wider detection radius, play with the min/max values on neighbor groups, and relax the tether. Look at the 3D example for the some proportions to give you an idea. |
Thank you for the review. I am a little busy in my job at the moment so will not be able to sort this out until next weekend. 👍 |
Sounds good, thanks for working on them. Cheers! |
# Conflicts: # Assets/Examples/3D/01 - Basic/Neighbor examples/Neighbors-Separation.prefab.meta # Assets/Examples/3D/01 - Basic/Neighbor examples/Neighbors-Separation.unity # Assets/Examples/3D/03 - Advanced/ObstacleAvoidance/Obstacle.prefab.meta
…ples (non neighbour ones).
Hi @ricardojmendez. I think I have addressed the issues you raised above. The main issue i was having with the Neighbor examples was that I had the Radar2D detection layer set to 'Nothing'. Fixed that, plus took on board your advice above. Would you mind having another review? Maybe we are nearly at a point where this can be merged in? Thanks! |
Thanks. Looking at the obstacle avoidance scene, the boids seem a big groggy and keep turning around - I'll take a look at it. |
OK, this is a good example of how tweaking the values end up creating completely different behavior. There's several things that are contributing to this jittery way the vehicles are reacting to each other.
When in doubt, click "Draw Neighbors" on SteerForNeighborGroup2D - that'll give you debug lines showing who each vehicle considers a neighbor. I'm attaching a prefab with these new settings. |
Thanks @ricardojmendez. Have updated pull request with your prefab. Rigidbody should be kinematic, that was not intentional. |
Do you think this is good to go now? Or would you like me to improve any other example? |
Hi, I think it's good to go, thanks! Will merge over the weekend when I'm back on my desk. Cheers, -- Ricardo
|
Fantastic! Thank you for great review. |
New 2D Examples, follows same structure as the 3D ones