Trigger an animation in Unity Augmented Reality with a collision (SDK: Vuforia)

Hello Everyone,

I am new to Unity and I am trying to get two bodies to interact with each other via an animation when they’re in close proximity.

When these 2 bodies are separated they’re supposed to be idle.

One of the bodies has a rigid body and box collider. The other one only a box collider with a trigger.

I used 3 states in my animator, to trigger the animation I used a boolean condition.

This is my script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Kollision : MonoBehaviour
{

    [SerializeField] private Animator myAnimationController;



    // Start is called before the first frame update
    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Player"))
        {
            myAnimationController.SetBool("Zusammen", true);
        }
           
    }

    // Update is called once per frame
    void Update()
    {
       
    }
}

I can’t get the animation to start. Can you pleas help me?

The version I’m using is Unity 2020.1.11f1

Hey there @Bajs93 , Vuforia support is actually handled directly by them.

Please report your issues and questions to Vuforia’s forums and their team will help address.