Skip to content

Commit

Permalink
Disable rotation syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
Caraxi committed Jun 17, 2024
1 parent bcf40be commit 00b8871
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,19 +464,20 @@ bool ReleaseControl(bool r) {
using (PerformanceMonitors.Run($"Calculate Precise Position Offset:{updateIndex}", Config.DetailedPerformanceLogging))
using (PerformanceMonitors.Run("Calculate Precise Position Offset")) {
var pos = (Vector3) character->GameObject.Position;
var rot = character->GameObject.Rotation;
//var rot = character->GameObject.Rotation;
var emotePos = ipcCharacter.EmotePosition.GetOffset();
var emoteRot = ipcCharacter.EmotePosition.GetRotation();
//var emoteRot = ipcCharacter.EmotePosition.GetRotation();

if (Vector3.Distance(pos, emotePos) is > Constants.FloatDelta and < 1f ) {
PluginService.Log.Debug($"Apply Precise Position to Object#{updateIndex}");
character->GameObject.SetPosition(emotePos.X, emotePos.Y, emotePos.Z);
}

/*
if (MathF.Abs(rot - emoteRot) > Constants.FloatDelta) {
PluginService.Log.Debug($"Apply Precise Rotation to Object#{updateIndex}");
character->GameObject.Rotate(emoteRot);
}
*/
}
}

Expand Down
2 changes: 1 addition & 1 deletion SimpleHeels.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendPlatformToOutputPath>false</AppendPlatformToOutputPath>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<Version>0.9.3.6</Version>
<Version>0.9.3.7</Version>
<DalamudLibPath>$(appdata)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
Expand Down

0 comments on commit 00b8871

Please sign in to comment.