Page MenuHomeFeedback Tracker

setPos sets wrong position for "Land_BagFence_End_F"
New, NormalPublic

Description

SetPos places the object "Land_BagFence_End_F" with an ~0.5 m offset on x or y axis.
Other objects do not seem affected by the same error.

Tested in Vanilla Arma v. 2.16.151618

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. load the provided mission
  2. Execute the following code (added as addaction on the white cube):
testS2 = "Land_BagFence_End_F" createVehicle (getPos main1);

testS2 setDir (getDir main1 + getDir testS);
_pos = (main1 modelToWorld (main1 worldToModel (ASLToAGL getPosASL testS)));
testS2 setPos _pos;


testS2mid = "Land_BagFence_Short_F" createVehicle (getPos main1);

testS2mid setDir (getDir main1 + getDir testSmid);
_pos2 = (main1 modelToWorld (main1 worldToModel (ASLToAGL getPosASL testSmid)));
testS2mid setPos _pos2;

Expected result (or using "_X setPosASL (AGLToASL _pos)"

Current result using setPos

Additional Information

the problem does not occur, when using

testS2 setPosASL (AGLToASL _pos);

to set the position instead.

Event Timeline