Page MenuHomeFeedback Tracker

attachTo to weapon proxy with followBoneRotation and offset leads to shifting
New, NormalPublic

Description

When using attachTo with "proxy:\a3\characters_f\proxies\weapon.001" as memPoint and followBoneRotation set to true and an offset, the attached objects shifts up and down relative to the weapon when aiming up and down. Since there is no weapon animation running, the object should look just like a weapon attachment, but it doesn't.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
Scripting
Steps To Reproduce
  • Spawn as an Autorfileman or any other unit with an IR laser
  • Execute the following code:
private _model = getText (configFile >> "CfgWeapons" >> primaryWeapon player >> "model");
private _dummy = createSimpleObject [_model, [0, 0, 0], true];
private _proxyOffset = _dummy selectionPosition ["\a3\data_f\proxies\weapon_slots\SIDE.001", 1];
_proxyOffset = [_proxyOffset#1, _proxyOffset#0 * -1, _proxyOffset#2];
deleteVehicle _dummy;

private _sphere = createSimpleObject ["Sign_Sphere10cm_F", [0, 0, 0]];
_sphere attachTo [player, _proxyOffset, "proxy:\a3\characters_f\proxies\weapon.001", true];
_sphere setObjectScale 0.1;
  • Observe the position of the sphere when aiming towards the horizon
  • Compare with the position of the sphere when aiming to the sky or to the ground

Event Timeline

This comment was removed by Geez.
Geez added a subscriber: Geez.Fri, Mar 10, 9:36 AM
dedmen set Ref Ticket to AIII-55593.Thu, Mar 16, 10:33 AM