mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Renamed localEulerAnglesSensitivity (#1474)
BREAKING CHANGE: localEulerAnglesSensitivity renamed to localRotationSensitivity
This commit is contained in:
parent
8816ce5d03
commit
eee969201d
@ -37,7 +37,7 @@ public abstract class NetworkTransformBase : NetworkBehaviour
|
|||||||
[Tooltip("Changes to the transform must exceed these values to be transmitted on the network.")]
|
[Tooltip("Changes to the transform must exceed these values to be transmitted on the network.")]
|
||||||
public float localPositionSensitivity = .01f;
|
public float localPositionSensitivity = .01f;
|
||||||
[Tooltip("Changes to the transform must exceed these values to be transmitted on the network.")]
|
[Tooltip("Changes to the transform must exceed these values to be transmitted on the network.")]
|
||||||
public float localEulerAnglesSensitivity = .01f;
|
public float localRotationSensitivity = .01f;
|
||||||
[Tooltip("Changes to the transform must exceed these values to be transmitted on the network.")]
|
[Tooltip("Changes to the transform must exceed these values to be transmitted on the network.")]
|
||||||
public float localScaleSensitivity = .01f;
|
public float localScaleSensitivity = .01f;
|
||||||
|
|
||||||
@ -341,7 +341,7 @@ bool HasEitherMovedRotatedScaled()
|
|||||||
// moved or rotated or scaled?
|
// moved or rotated or scaled?
|
||||||
// local position/rotation/scale for VR support
|
// local position/rotation/scale for VR support
|
||||||
bool moved = Vector3.Distance(lastPosition, targetComponent.transform.localPosition) > localPositionSensitivity;
|
bool moved = Vector3.Distance(lastPosition, targetComponent.transform.localPosition) > localPositionSensitivity;
|
||||||
bool rotated = Vector3.Distance(lastRotation.eulerAngles, targetComponent.transform.localRotation.eulerAngles) > localEulerAnglesSensitivity;
|
bool rotated = Vector3.Distance(lastRotation.eulerAngles, targetComponent.transform.localRotation.eulerAngles) > localRotationSensitivity;
|
||||||
bool scaled = Vector3.Distance(lastScale, targetComponent.transform.localScale) > localScaleSensitivity;
|
bool scaled = Vector3.Distance(lastScale, targetComponent.transform.localScale) > localScaleSensitivity;
|
||||||
|
|
||||||
// save last for next frame to compare
|
// save last for next frame to compare
|
||||||
|
Loading…
Reference in New Issue
Block a user