Rigging the Characters
There are few boid requirements:
- Must be a skinned character.
- LOD's (especially LOD1 for the ragdoll).
CRYENGINE 3.5 - LOD's in CHR's
The skin with LOD's needs to be re-exported from DCC tools as a .skin. LOD's in CHR's are not supported any more.
Animations also need to be re-exported/imported through the Animation Compression Editor and Animation Importer tool as well.
Simple boids like insects or fish can have one single bone and point to null animations.
There are three animations boid characters use or require:
Don't forget that each boid character needs a CAL file that points to its animations. As you see below, these three animations will be slightly scaled according to the speed of the boid.
[FLOAT, 10] - The number of characters in the group
[FLOAT, 10] - The mass of one character in kg
[RELATIVE PATH] - The CGA model you created
[FLOAT, 1] - The scale of the characters in the group
[FLOAT, 0] - Random size multiplier
[FLOAT, -9.81] - Gravitational impulse applied to a member of the group on death
[FLOAT, 20] - The maximum distance from the boid in meters (radius) wherein it will be attracted to another
[FLOAT, 5] - The minimum distance from the boid in meters (radius) wherein it will repel others
[BOOL, False] - Enable/Disable flocking, when disabled, every boid will be on his own
[FLOAT, 0] - A multiplier effecting the coherency of the aligned direction of the boids
[FLOAT, 1] - A multiplier effecting how strong the attraction is for the group to stay together
[FLOAT, 10] - The strength of the force repelling the boids when they are in another's AttractDistMin radius
[FLOAT, 250] - Each boids angle of sight (cone) wherein he can see other boids
[FLOAT, 10] - How strong of a force is applied for them to avoid land
[FLOAT, 0.4] - A lower value means more vertical movement, a higher value, more horizontal movement
[FLOAT, 0.1] - How strong the boids attraction to the origin point of the boids system is
[FLOAT, 2] - Random acceleration multiplier
[FLOAT, 20] - Maximum height (meters) boids will travel from the terrain (water clamps fish)
[FLOAT, 2] - Minimum distance (meters) boids will come to the terrain
[FLOAT, 1.7] - Multiplier, the maximum deviation allowed from the original animation speed. (Anim speed scales based on boid speed)
[FLOAT, 8] - Maximum amount (meters/sec) the boids can move
[FLOAT, 2] - Minimum amount (meters/sec) the boids can move
[BOOL, False] - Whether or not the boids system is activated in the game
[BOOL, False] - When enabled the player will be the origin of the boids system, and it's box the radius
[BOOL, False] - When enabled the boids will not attempt to land (above water only)
[BOOL, False] - The boids will occasionally cast rays in their flight direction to navigate around objects (more resource usage)
[FLOAT, 20] - Distance from the origin (meters) that the boids attempt to stay within
[FLOAT, 20] - Distance from the origin (meters) to update boids within, to be safe, should be 2 times the radius they move within