Skip to content

Commit

Permalink
fixes issue with transformation being applied to velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
joreg committed May 2, 2024
1 parent c8f426f commit fe20950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions deployment/VL.Augmenta.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/10/nuspec.xsd">
<metadata>
<id>VL.Augmenta</id>
<version>0.0.9-alpha</version>
<version>0.0.10-alpha</version>
<title>VL.Augmenta</title>
<authors>vvvv</authors>
<owners>vvvv</owners>
<projectUrl>https://github.com/vvvv/VL.Augmenta</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary></summary>
<description>Provides support for Augmenta tracking in VL. Try it with vvvv: http://visualprogramming.net/</description>
<tags>VL, tracking</tags>
<license type="expression">LGPL-3.0-only</license>
Expand Down
4 changes: 2 additions & 2 deletions src/PObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ void updateClusterData(ReadOnlySpan<byte> data, int offset)
var si = offset + sizeof(int) + i * Unsafe.SizeOf<Vector3>();

var p = Utils.ReadVector(data, si);
if (pointMode == CoordMode.Absolute)
clusterData[i] = clusterData[i] = p;
if (pointMode == CoordMode.Absolute || i == 1) //i=1 -> don't transform the velocity
clusterData[i] = p;
else
clusterData[i] = Vector3.Transform(p, parentTransform);// parentTransform.InverseTransformPoint(p);
}
Expand Down

0 comments on commit fe20950

Please sign in to comment.