public Vector2 ComputeWindFactor(TreeNode node, float offset)
{
Vector2 vector;
if (node.group.parentGroup.GetType() == typeof(TreeGroupRoot))
{
vector = new Vector2(0f, 0f);
}
else
{
vector = node.parent.group.ComputeWindFactor(node.parent, node.offset);
}
float scale = node.GetScale();
vector.x += (((offset * offset) * offset) * scale) * this.animationPrimary;
vector.y += ((offset * offset) * scale) * this.animationSecondary;
return vector;
}