Skip to content

Commit 3a35992

Browse files
committed
Fix MovementBlend Range
Signed-off-by: Mikhail Agapov <mikhail.agapov@decentraland.org>
1 parent f463fd5 commit 3a35992

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Protocol/Generated/PulseComms.Bitwise.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ public float RotationYQuantized
6666
}
6767

6868
private float? _movementBlend;
69-
/// <summary>Float accessor for <see cref="MovementBlend"/>. Range [0.0f, 1.0f], 4 bits, step ≈ 0.0666667.</summary>
69+
/// <summary>Float accessor for <see cref="MovementBlend"/>. Range [0.0f, 3.0f], 4 bits, step ≈ 0.2.</summary>
7070
public float MovementBlendQuantized
7171
{
72-
get => _movementBlend ??= Quantize.Decode(MovementBlend, 0.0f, 1.0f, 4);
73-
set { _movementBlend = value; MovementBlend = Quantize.Encode(value, 0.0f, 1.0f, 4); }
72+
get => _movementBlend ??= Quantize.Decode(MovementBlend, 0.0f, 3.0f, 4);
73+
set { _movementBlend = value; MovementBlend = Quantize.Encode(value, 0.0f, 3.0f, 4); }
7474
}
7575

7676
private float? _slideBlend;

src/Protocol/Generated/PulseComms.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static PulseCommsReflection() {
7272
"EIq1GAwNAABIwhUAAEhCGAhIBYgBARIpCgp2ZWxvY2l0eV96GAogASgNQhCK",
7373
"tRgMDQAASMIVAABIQhgISAaIAQESJAoKcm90YXRpb25feRgLIAEoDUILirUY",
7474
"BxUAALRDGAdIB4gBARIoCg5tb3ZlbWVudF9ibGVuZBgMIAEoDUILirUYBxUA",
75-
"AIA/GARICIgBARIlCgtzbGlkZV9ibGVuZBgNIAEoDUILirUYBxUAAIA/GARI",
75+
"AEBAGARICIgBARIlCgtzbGlkZV9ibGVuZBgNIAEoDUILirUYBxUAAIA/GARI",
7676
"CYgBARIiCghoZWFkX3lhdxgOIAEoDUILirUYBxUAALRDGAdICogBARIkCgpo",
7777
"ZWFkX3BpdGNoGA8gASgNQguKtRgHFQAANEMYBkgLiAEBEhgKC3N0YXRlX2Zs",
7878
"YWdzGBAgASgNSAyIAQESOAoLZ2xpZGVfc3RhdGUYESABKA4yHi5kZWNlbnRy",

0 commit comments

Comments
 (0)