Unreal Engine – Throw Helper VR Component UE8435

Throw Helper VR Component

UPDATE 1

New options added:

Keep Initial Speed – if set to True, only direction of initial velocity vector will be changed during correction. Use case – bowling like games.

Tightness Velocity, Tightness XY – how strong is correction. 1 – full correction, 0 – no correction. Use case – drop of granades, when there is no need for 100% accurate throw, just a little correction.

UPDATE 2

New option added for THTargetActor: Position prediction.

Now you can use position prediction for moving targets. It works pretty well for targets that have linear velocity. Keep in mind – it will not give you a 100% prediction. That’s why I consider this feature as experimental.

Still, you can modify prediction logic to use your algorithm and math. See Get Target Position in THTargetActor.

UPDATE 3

Improved performance.

UPDATE 4

Small fixes

UPDATE 5

Fix for UE5

Adding Velocity smoothing. The component itself calculates the speed of the actor and smooths it over N frames. The functionality can work even if there are no Targets in the scene, improving the user experience with poor tracking.

Contains:

  • 1 ActorComponent
  • 1 SceneActor (TargetActor Example)
  • 1 Interface
  • 1 Tutorial Blueprint

How to use video: https://youtu.be/BESd_eWHkR0

Platforms tested:

Windows

SteamVR / Oculus VR

Intended platforms:

Windows, Mac, Linux

SteamVR / HTC Vive, HTC Vive Pro, Oculus Rift, Oculus Rift S, Oculus Quest