Skip to content

Commit

Permalink
zero
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Sep 11, 2024
1 parent 1758fd6 commit ea1b305
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Winch/Data/POI/Dock/Destinations/CustomBaseDestination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public abstract class CustomBaseDestination
/// <summary>
/// Relative position of this destination
/// </summary>
public Vector3 position = new Vector3(-1.825f, 3, 0.125f);
public Vector3 position = Vector3.zero;

[SerializeField]
public LocalizedString titleKey = LocalizationUtil.Empty;
Expand All @@ -31,13 +31,13 @@ public abstract class CustomBaseDestination
/// Relative position of the camera from the destination.
/// </summary>
[SerializeField]
public Vector3 vCam = new Vector3(13, 2.5f, 9);
public Vector3 vCam = Vector3.one;

/// <summary>
/// The relative position for the camera look at target
/// </summary>
[SerializeField]
public Vector3 lookAtTarget = new Vector3(-0.7f, -2f, -0.25f);
public Vector3 lookAtTarget = Vector3.zero;

[SerializeField]
public string speakerData = string.Empty;
Expand Down
6 changes: 3 additions & 3 deletions Winch/Serialization/DredgeTypeHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,9 @@ private static SpeakerVCam ParseSpeakerVCam(object value)
var jsonDict = JsonConvert.DeserializeObject<Dictionary<string, object>>(value.ToString()) ?? throw new InvalidOperationException("Unable to parse speaker camera.");
return new SpeakerVCam
{
position = jsonDict.TryGetValue("position", out object position) ? ParseVector3(position) : new Vector3(-1.825f, 3, 0.125f),
vCam = jsonDict.TryGetValue("vCam", out object vCam) ? ParseVector3(vCam) : new Vector3(13, 2.5f, 9),
lookAtTarget = jsonDict.TryGetValue("lookAtTarget", out object lookAtTarget) ? ParseVector3(lookAtTarget) : new Vector3(-0.7f, -2f, -0.25f)
position = jsonDict.TryGetValue("position", out object position) ? ParseVector3(position) : Vector3.zero,
vCam = jsonDict.TryGetValue("vCam", out object vCam) ? ParseVector3(vCam) : Vector3.one,
lookAtTarget = jsonDict.TryGetValue("lookAtTarget", out object lookAtTarget) ? ParseVector3(lookAtTarget) : Vector3.zero
};
}

Expand Down

0 comments on commit ea1b305

Please sign in to comment.