Comments (3)
Hi Mike,
Actually, this is likely because of how AutonomousVehicle currently interprets the forward vector (which is mentioned on the same article). If you attempt to run the boid example, they'll look as if they're having a seizure. I'll need to figure out what to do with that - it's possible that I may end up keeping AutonomousVehicle the way it was and fork the current behavior into a different class.
For now, if you're running into one of those cases, you may need to stick with the master branch.
from unitysteer.
Let me elaborate a bit more on what the issue is here, from the point of view of how things are on master. It's not just an issue of tweaking - this stems from the completely different way in which the development / master versions perceive velocity.
For master (and the working boids) velocity is an effect of its forward vector and speed. When it decides to move,it moves forward and can change direction by gradually moving its forward vector to be aligned with the new desired velocity. This means that they'll tend to move forward before turning around, like a car or a bird in flight would do.
For development (and the dubstep-dancing boids) velocity is the actual movement we're executing. Instead of tending to move forward, the agents are able to move in a direction while retaining a different forward vector. The jittery that you're seeing is the effect of the boids not gliding, but instead trying to sides-step each other. The new behavior just doesn't lend itself for boids.
If you want to retain the more vehicle-like behavior but take advantage of other improvements from the development branch, you could look into merging both AutonomousVehicle classes, or reverting the relevant commit, although I doubt such a change would apply cleanly:
That commit also explains the changes, so it might be good reading if you're considering adjusting the code.
from unitysteer.
hey Ricardo,
Thanks so much for your time. I've worked through it at this point. A while back i wrote you because the master branch wouldn't compile on iOS so i switched to the dev branch. It compiled but broke the boids :)
So today after writing you, I took the master branch, removed the C5 dependency and that fixed the iOS compile.
Really amazing job on this library, hope I can return the favor sometime. Btw I've been keeping an eye on your tile-based game, looking forward to playing that.
from unitysteer.
Related Issues (20)
- Cannot set the velocity directly on PassiveVehicle HOT 1
- Release UnitySteer 3.0f1 HOT 1
- How would you use UnitySteer for guided missiles HOT 5
- Strange behavior on Evasion when target doesn't move HOT 9
- Feature Request: Enable Ticked Length dynamic update in the Inspector
- 2D integration issues HOT 3
- UnitySteer and A* pathfinding HOT 4
- Threaded Ticked Queue HOT 1
- Using cohesion but keeping minimum distance apart HOT 3
- steer around a point HOT 1
- Code Docs with tutorial HOT 2
- Automated deployment HOT 4
- Help with SteerForPathSimplified !!! HOT 2
- Feature request: prevent SteerForPath skipping waypoints HOT 9
- I'm not clearly understand what the IsPostProcess variable means. HOT 3
- About UnitySteer and Physics HOT 5
- Follow/Align while Orbiting Another GameObject
- Basic vs Post-Processing behaviors HOT 3
- Feature request: Update instances during runtime on prefab changes
- Turning Radius
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unitysteer.