Added calculateWeaponPositionFunc for testing.