MoveTo/MoveBy + rotation

MoveTo/MoveBy + rotation
0.0 0

#1

Hi guys, I’m pretty new to cocos, and I’m in trouble here. I need to spawn a new sprite(it’s working) and then this sprite go foward based on its parent rotation. Like in archery. Sorry my bad english too. Thanks!


#2

If I understand you correctly, then trigonometry is what you need.
There’s a great explanation


#3

If the new spawned sprite (the arrow) is being added to the original one (the archer/parent) it should inherit the rotation of the parent.