I have got following problem. I have harpoon gun: Изображение удалено из-за отсутствия поддержки HTTPS. | Показать
There is one shoot animation. The default angle for shooting is 0, but I would like to shoot in any other direction +/-30 degrees etc. I am rotating cannon:
harpoongunSkeleton.skeleton.FindBone("bone").rotation = Mathf.Sin(time * 3) * 3*(4 - time) + aimAngle;
but when i play animation it shoots with default (0 degrees) direction.
I could not find anything on forum, but I suppose it is simple problem, and I do not know search terms.
Thanks for help.