PDA

View Full Version : Physics.cast ray, debug extending past where it actually affects



DeathKnight
07-25-2017, 09:01 PM
https://gyazo.com/d492bce6b118789c563ed492e5bb234d
Anything inside the ray gets rotated to a certain rotation.
https://gyazo.com/0a6dfd8eed8deca9b55f281efa7dd7a7
I put the object that should rotate in the ray, and it rotated the direction it was supposed to.
https://gyazo.com/45cfa74b3c4fa79b89ce9483ec0d4854
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.

Lucky seven
07-26-2017, 06:42 AM
Moved to Scripting Bugs.