Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Assets/FishNet/CodeGenerating/Unity.FishNet.CodeGen.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"references": [
"FishNet.Runtime",
"FishNet.Codegen.Cecil",
"GameKit.Dependencies"
"GameKit.Dependencies",
"Unity.Burst",
"Unity.Mathematics",
"Unity.Collections"
],
"includePlatforms": [
"Editor"
Expand Down
4 changes: 3 additions & 1 deletion Assets/FishNet/Runtime/FishNet.Runtime.asmdef
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"references": [
"GUID:894a6cc6ed5cd2645bb542978cbed6a9",
"GUID:1d82bdf40e2465b44b34adf79595e74c",
"GUID:d8b63aba1907145bea998dd612889d6b"
"GUID:d8b63aba1907145bea998dd612889d6b",
"GUID:2665a8d13d1b3f18800f46e256720795",
"GUID:e0cd26848372d4e5c891c569017e11f1"
],
"includePlatforms": [],
"excludePlatforms": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
SerializedProperty adaptiveInterpolationValue = property.FindPropertyRelative("AdaptiveInterpolationValue");
SerializedProperty interpolationValue = property.FindPropertyRelative("InterpolationValue");
SerializedProperty smoothedProperties = property.FindPropertyRelative("SmoothedProperties");
SerializedProperty useLocalSpace = property.FindPropertyRelative("UseLocalSpace");
SerializedProperty snapNonSmoothedProperties = property.FindPropertyRelative("SnapNonSmoothedProperties");

_propertyDrawer.DrawProperty(enableTeleport, "Enable Teleport");
Expand All @@ -37,6 +38,7 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
_propertyDrawer.DrawProperty(interpolationValue, "Interpolation Value", indent: 1);

_propertyDrawer.DrawProperty(smoothedProperties, "Smoothed Properties");
_propertyDrawer.DrawProperty(useLocalSpace, "Use Local Space");
if ((uint)smoothedProperties.intValue != (uint)TransformPropertiesFlag.Everything)
_propertyDrawer.DrawProperty(snapNonSmoothedProperties, "Snap Non-Smoothed Properties", indent: 1);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public struct MovementSettings
[Tooltip("Properties to smooth. Any value not selected will become offset with every movement.")]
public TransformPropertiesFlag SmoothedProperties;
/// <summary>
/// True to apply smoothing in local space for position and rotation. False to use world space.
/// </summary>
[Tooltip("True to apply smoothing in local space for position and rotation. False to use world space.")]
public bool UseLocalSpace;
/// <summary>
/// True to keep non-smoothed properties at their original localspace every tick. A false value will keep the properties in the same world space as they were before each tick.
/// </summary>
[Tooltip("True to keep non-smoothed properties at their original localspace every tick. A false value will keep the properties in the same world space as they were before each tick.")]
Expand All @@ -46,7 +51,8 @@ public MovementSettings(bool unityReallyNeedsToSupportParameterlessInitializersO
AdaptiveInterpolationValue = AdaptiveInterpolationType.Off;
InterpolationValue = 2;
SmoothedProperties = TransformPropertiesFlag.Everything;
UseLocalSpace = false;
SnapNonSmoothedProperties = false;
}
}
}
}
Loading