mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Reduce default number of rays, make it an argument for shootCone. Accuracy is still the same with 3 to 8, just better FPS. Rangefinders should probably use a higher number (8 is good, 24+1 rays in total per shot).
This commit is contained in:
parent
db3f816843
commit
40c5de8cfb
@ -8,6 +8,10 @@ _vec = _this select 1;
|
|||||||
if(count _this > 2) then {
|
if(count _this > 2) then {
|
||||||
_divergence = _this select 2;
|
_divergence = _this select 2;
|
||||||
};
|
};
|
||||||
|
_count = 3;
|
||||||
|
if(count _this > 3) then {
|
||||||
|
_count = _this select 3;
|
||||||
|
};
|
||||||
_longestReturn = -1000000000;
|
_longestReturn = -1000000000;
|
||||||
_shortestReturn = 1000000000;
|
_shortestReturn = 1000000000;
|
||||||
_resultPositions = [];
|
_resultPositions = [];
|
||||||
@ -35,7 +39,7 @@ if(!isNil "_resultPos") then {
|
|||||||
drawLine3D [ASLtoATL _pos, ASLtoATL _resultPos, [1,0,0,1]];
|
drawLine3D [ASLtoATL _pos, ASLtoATL _resultPos, [1,0,0,1]];
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
_count = 3;
|
|
||||||
|
|
||||||
_pos2 = _pos vectorAdd (_vec vectorMultiply 1000);
|
_pos2 = _pos vectorAdd (_vec vectorMultiply 1000);
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user