1

I need to implement a feature in my application where these words are going to "swim" around in the background, basically I need to pick a point in front of the leading letter of the word, and swim to it using a "wavey" style.

I also need to avoid the walls, so it turns in time, among other 'fish like' behaviors it needs to implement.

I'm sure I need to do something with a sin calculation, but I really want it to be efficient, I'm using C#, but any language implementation will be insightful.

What resources are out there for implementing this in C#?

4

2 回答 2

3

one classic flocking simulation you could take a look at would be Boids

于 2009-12-10T21:40:55.997 回答
0

我做过类似的事情,其中​​一系列字母根据前导字母的移动进行动画处理。它是鼠标尾随,而不是鱼在游动,但是可以使该方法起作用,因为位置偏移量会随着与主角的距离而衰减。

它是 MFC/C++,位于 codeproject

于 2009-12-10T22:09:48.547 回答