Search Unity

MRTK & interaction with the object

Discussion in 'VR' started by Nuclear3179, May 6, 2019.

  1. Nuclear3179

    Nuclear3179

    Joined:
    May 6, 2019
    Posts:
    2
    Hello world!
    Now, I'm creating a small application with Microsoft Mixed Reality Toolkit v2.
    But, I have a problem: when I take the object, its component Rigidbody becomes isKinematic.
    It really bothers me.
    Question: how to turn isKinematic off when interacting with the controller?

     
  2. keveleigh

    keveleigh

    Official Microsoft Employee

    Joined:
    Jun 19, 2015
    Posts:
    35
    The reason we turn on `IsKinematic` is because it allows the ManipulationHandler script to directly edit the object's transform without the effect of gravity or collisions. This allows us to fully control the transform throughout the interaction, though the flag should be turned back off at the end of the interaction to revert back to your desired behavior.

    Is this causing a specific issue in your app, or is it otherwise behaving unexpectedly?
     
    JasonCostanza and Nuclear3179 like this.
  3. Nuclear3179

    Nuclear3179

    Joined:
    May 6, 2019
    Posts:
    2
    Of course, after interaction, isKinematic is turned off!
    And the object behaves correctly!
    When interacting with the controller, I will disable gravity on this object
    But when a body is kinematic, it passes through other bodies, it distorts reality.