🧑‍💻Setup

Let's do it! 💪

Getting started with HPTK

1. Obtain HPTK

In Unity Editor, open Package Manager. Click on Add package from git URL and paste the following URL:

https://github.com/jorgejgnz/HPTK.git

Click on Add and Unity will download the package. This package has no dependencies.

2. Project Settings (!)

HPTK relies on nVidia PhysX and Unity's built-in Configurable Joints to simulate hand physics. Please use the following recommended settings:

Physics

  • Default Solver Iterations: 15-25.

  • Default Solver Velocity Iterations: 5-15.

  • Friction Type: One Directional Friction Type.

  • Solver Type: Temporal Gauss Seidel.

  • Default Max Depenetration Velocity: 0.1 (optional, recommended).

  • Default Max Angular Velocity: 2.0 (optional, recommended).

  • Enable Adaptative Force: enabled (optional, recommended).

  • Bounce Threshold: 0.25 (optional, recommended).

Time

  • Fixed Timestep: 0.01.

  • Maximum Allowed Timestep: 0.1 (optional, recommended).

If you're having problems following these steps please let us know.

The following table shows a comparison of how this configuration affects the realism of the simulation:

Default settings

Recommended settings

3. Create the layer HPTK

Create a new collision layer called HPTK in slot 8. In ProjectSettings/Physics, modify the layer collision matrix to make HPTK layer not to collide with Default or UI layers.

The expected result after those changes is shown in the following images.

4. Platform-Specific Steps

Now let's jump to the platform-specific part of the guide. Please select the target device for your application:

Last updated