How can i get the angle of the way something is going in?

Is there an addon for this? i searched every block but i could not find one that would let me get somethings angle. (air hockey game)

component_set_get (1)

1 Like

Which angle? the angle of the puck or the hockey stick or edge?

See Creating Animated Apps
and consider Tim's suggestion. You determine an angle using possibly a heading and the orientation of the struck object. The two are required to 'calculate an angle'.

1 Like

i set the pucks heading to 50, but it still goes horizontally.

Be sure to turn off sprite rotation on the puck.

2 Likes

how?