Page MenuHomePhabricator

lineIntersects / lineIntersectsWith commands seem to be totally broken/unreliable
Closed, ResolvedPublic

Description

lineIntersects / lineIntersectsWith don't seem to work in most cases since they don't detect most of the objects at all and even if they do, they only do it from specific positions.

Here is a small video showcasing the issue:
https://www.youtube.com/watch?v=FNkhjre8QM4

Details

Legacy ID
560594750
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce

(Idea & script by Larrow)
Place two helper spheres called helper1 & helper2
Execute this:

ermagerd = [] spawn {
while {true} do {

		sleep 0.03;
		start = player modelToWorld [0,1,1.2];
		end = player modelToWorld [0,3,1.2];
		helper1 setPos start;
		helper2 setPos end;
		hintsilent str (lineIntersects [start,end,helper1,helper2]);

};
};

Event Timeline

Laxemann edited Steps To Reproduce. (Show Details)Jun 17 2014, 2:57 AM
Laxemann edited Additional Information. (Show Details)
Laxemann set Category to Scripting.
Laxemann set Reproducibility to Always.
Laxemann set Severity to None.
Laxemann set Resolution to No Bug.
Laxemann set Legacy ID to 560594750.May 7 2016, 6:45 PM

Intersect commands take position ASL but you feed them normal position.

Ah, I see. I used ATLtoASL in order to convert the positions and it seems to work just well, however the positions seem to be 6m above my head. But well, it works, so thanks for the heads up, mate.

Closing as no bug.