🔸Warp Providers
In this section you will learn about warp providers.
Last updated
In this section you will learn about warp providers.
Last updated
Warp Providers are components, which implement IWarpProvider interface. Their role is quite important in the system: they analyze the environment by runtime tracing, and then provide desired target points for our character.
For example, Vault Component will trace forward to find an obstacle, and if it's vaultable, we can perform our vaulting action.
Let's add a Vault Component to our character:
Make sure to specify the asset we created in Motion Warping Asset and vaulting settings. You can use the ones right from the demo project.
Now we need to actually interact with the Vault Component in the code.
Interact
method returns WarpInteractionResult
struct:
If you want to implement a custom Warp Provider, simlpy implement IWarpPointProvider interface in your MonoBehaviour.