Quantcast
Channel: How do I get the rotation of degree with getBoundingClientRect? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Banana for How do I get the rotation of degree with...

This is more of a math question rather than programming, but you should basically calculate the x and y differences between your character and its target, and then calculate the angle. Assuming x1,y1...

View Article


Image may be NSFW.
Clik here to view.

How do I get the rotation of degree with getBoundingClientRect?

In my game, you can click on the orange box (it's supposed to represent a monster). Upon clicking, a green line will be appended to the characters div. For example for a better explanation: This is...

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>