Arma 3 Version: 1.88 (stable)
CBA Version: 3.9.1 (stable)
ACE3 Version: 3.12.5 (stable)
Mods:
- CBA_A3
- ace
- Other mods (didn't test with CBA + ACE3 alone yet)
Description:


_Note: Player next to the wall is not intersecting the laser! Not the ideal screenshots._
Steps to reproduce:
Where did the issue occur?
Additional information:
RPT log file:
Courtesy of @Drofseh:

Would be explained if we ray traced from the observer to the target. Which doesn't happen.
https://github.com/acemod/ACE3/blob/master/addons/laserpointer/functions/fnc_drawLaserpoint.sqf
The code is raytracing from the target, in his weapon direction and takes the first intersection.
It's not tracing from the local player. It only takes position and directions from the target (the origin unit who holds the laser)
https://github.com/acemod/ACE3/blob/master/addons/laserpointer/functions/fnc_drawLaserpoint.sqf#L47
That is weird. _unit is the player, and it's in the ignore list.
Meaning the laser will just pass through the player? Like if the origin is behind you and he's shining through you. Then it will not consider the intersection on your own body.
That's kinda dumb.
Another case, marked this time:

It shouldn't render in this case at all and it should be a lot smaller.
This is still an issue in 3.13.0. Laser point/dot is also way too big at certain distances.
To do this correctly we need 2 ray casts,
1: from laser forward to see where dot should be
2: from player view to laser dot to see if we have visibility to it
Most helpful comment
To do this correctly we need 2 ray casts,
1: from laser forward to see where dot should be
2: from player view to laser dot to see if we have visibility to it