From d52a83e779c0d58bb5c0e279a545f9fc724dfa50 Mon Sep 17 00:00:00 2001 From: freezy Date: Wed, 27 Nov 2024 00:32:00 +0100 Subject: [PATCH] droptarget: Fix animation translation when rotated. --- .../VisualPinball.Unity/Game/PhysicsMovements.cs | 13 +++++++------ .../VPT/HitTarget/DropTargetComponent.cs | 1 + .../VPT/HitTarget/DropTargetStaticState.cs | 3 +++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/VisualPinball.Unity/VisualPinball.Unity/Game/PhysicsMovements.cs b/VisualPinball.Unity/VisualPinball.Unity/Game/PhysicsMovements.cs index ac69ab194..02e369cd6 100644 --- a/VisualPinball.Unity/VisualPinball.Unity/Game/PhysicsMovements.cs +++ b/VisualPinball.Unity/VisualPinball.Unity/Game/PhysicsMovements.cs @@ -65,12 +65,13 @@ internal void ApplyDropTargetMovement(ref NativeParallelHashMap. +using Unity.Mathematics; + namespace VisualPinball.Unity { internal struct DropTargetStaticState @@ -21,5 +23,6 @@ internal struct DropTargetStaticState public float Speed; public float RaiseDelay; public bool UseHitEvent; + public float3 InitialPosition; } }