Need help with Rigidbody isKinematic on objects with Animator attached

Hello there!
I I’m doing a scene in Unity where player can use a fire extinguisher to extinguish fire in front of it. I got a 3d model of the fire extinguisher. It consists of several parts like seal, handle, bolt which are child objects of “Extinguisher”.

The functionality i want to implement is after clicking on a seal, animation of unlocking the extinguisher should play after which the seal and the bolt should fall to the ground. The animation is basically moving the seal and the bolt to the side of the extinguisher. Animator is attached to the “Extinguisher” object.

I created an animation clip and attached and Pointer Click Event Trigger to the seal which plays the animation.
This is how my Animator looks like:
9627596--1367519--upload_2024-2-6_18-32-20.png
ExtinguisherUnlock state has Behaviour script attached:

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

public class UnlockBehaviour : StateMachineBehaviour
{
    private Rigidbody _rbSeal;
    private Rigidbody _rbBolt;

    public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        _rbSeal = animator.transform.Find("Seal").GetComponent<Rigidbody>();
        _rbBolt = animator.transform.Find("Bolt").GetComponent<Rigidbody>();
    }

    public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        _rbSeal.isKinematic = false;
        _rbBolt.isKinematic = false;
        _rbSeal.WakeUp();
        _rbBolt.WakeUp();

        animator.SetBool("isUnlocked", true);
    }  
}

So I change isKinamatic to false for both seal and bolt. After checking in the inspector, isKinematic is set to false but objects don’t fall.

I can see in the inspector that the speed and velocity of the object is changing but no effect on the position.

I tried switching on/off Write defaults in every animator state and it didn’t help. I setting imported model scaling from 100 to 1 but still no result.
Removing seal from being a child object as well as using Animation Event to set isKinematic to false also didn’t help.
Freeze position is also unchecked, as well as “Static” next to Layer selector.
9627596--1367522--upload_2024-2-6_18-41-9.png
(Tried changing drag and angular drag as well)
Would be glad if anyone could help, can provide more info/screenshots if needed :slight_smile:

are you setting the position of the bolt anywhere in the idle animation after you turn off kinematic?

Idle is just an empty state