[url]https://gyazo.com/d492bce6b118789c563ed492e5bb234d[/url]
Anything inside the ray gets rotated to a certain rotation.
[url]https://gyazo.com/0a6dfd8eed8deca9b55f281efa7dd7a7[/url]
I put the object that should rotate in the ray, and it rotated the direction it was supposed to.
[url]https://gyazo.com/45cfa74b3c4fa79b89ce9483ec0d4854[/url]
This is the whole code except for startTimer() which is being called by a timer on another object with the delay of 0.1.
All of the objects put into the ray have the correct description for the code to work.
OS = windows 7
game version = hotfix 3 v9.5
Edit:
on second look, it only happens when the ray is going at an angle
edit2:
on third look, it looks like it has something to do with using the math class.