i just now began playing with raycasting… it expect a starting point (which i set to player eye height) and then a end position… how do i direct the raycast to shoot forward into the direction the player is looking?
Make the end position:
Multiply( FacingDirectionOf(Event Player), *range*)
For Example: If you want to do a ray cast to a maximum of 100m, then multiply the FacingDirection by 100.
this seems to work, so thanks! but why is the center of the casted circle off from where im pointing my cursor? s there a remidy for this?
If you did exactly what I gave you, then it’s not wrong, I just thought you’d fill the blanks lol.
You need to add your eye position to it:
Add( EyePosition(), Multiply(FacingDirectionOf(), *range*) )
yeah, i figured it out! the circle just got offcenter whenever the raycast got out of range (100 meter really isnt a lot x3) i set it to a 1000 and it works as expected! thanks a bunch!
im trying to look for a way to test if a ray hits or misses. is there a way to test for this? since when it misses, it returns the end point, which isnt very useful in this case
You can check the distance between the start point and the end point. In your case, the eye position and 1000m away. If the distance is == your range, there was no hit detected.
(of course you can get a hit that’s exactly 1000.00m away, but the likelihood of that happening is pretty slim lol)
awesome! thanks so much for the help! i was already fearing that my idea of turning mercy into a spellcaster wasnt gonna be happening! ^^
Yea, np! Have fun!
may i ask something offtopic? i been having the issue that after two weeks of vacation, all my old presets have been corrupted, even those without workshop content in it~ any clue what it might be? i made posts for it, but so far no responses have come in, and im growing desperate ;w;
is manually copying all setting over to a clean preset the only choice?
I think I’ve briefly seen something about this around the forums and Workshop communities. But I don’t know the real answer, sorry.
I think I’ve seen something about: it’s to do with Symmetra’s teleporter settings?
or if your map used one of the glitched maps (Winter Blizzard World), they don’t work or something.
idk, that’s all I have, sorry. I’ll try find an answer or you
im not sure what it is… all it shows is ‘unknown error occured’ and the odd things are that changing any setting such as available maps and heroes, it complains that none are selected, even when they are. i can include a link to my post if you like~
but if you cant find the answers, then its alright! still thanks a ton for all the help! i might copy all setting to a clean preset anyway… its very laggy and barebly able to work with it in the setting pages
EDIT: are you in the position of trying it out in overwatch itself? i tested some more, and the direction is still very off. i can provide a share codeEDIT: are you in the position of trying it out in overwatch itself? i tested some more, and the direction is still very off. i can provide a share code
EDITEDIT: nevermind… i was being a doofus~ didt realise you said that i had to add eye position to it! it works! thanks! ^^
Try and change the settings for Symmetra and see if that helps at all. Abd sure, you can send me the code if you like, I don’t mind.
Sorry lol, I was AFK for a bit. Glad you found the issue though!
Btw, in case you haven’t already, you should exclude the player from the ray trace. If you find that your ray traces are cut short for no apparent reason, then this is probably why
I will try that after dinner, but all seemed fine when i looked a moment ago. Still will give it a shot, thanks!
Perhaps we can add each other as friends for at least short term? So its easier to chat and we dont spam the forum as much
EDIT: no amount of changing symetra’s parameters changes anything~ if only presets were stored in local files -,-
Feel free to send me a friend request
uhm, i do need your blizzard id for that. mind giving it?
Xerxes#21917
Can I add you too? :3
Sure haha
Added you! ^^ thank you so much for all your help!