# How to implement the Control Pointer of Magic Leap 1: Magic Leap Developer Toolkit on Magic Leap 2

**URL:** <https://forum.magicleap.cloud/t/how-to-implement-the-control-pointer-of-magic-leap-1-magic-leap-developer-toolkit-on-magic-leap-2/1754>\
**Category:** Unity Development\
**Tags:** development, unity\
**Created:** [April 17, 2023, 3:53pm UTC](https://forum.magicleap.cloud/t/how-to-implement-the-control-pointer-of-magic-leap-1-magic-leap-developer-toolkit-on-magic-leap-2/1754 "2023-04-17T15:53:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)\
**Post date:** [April 17, 2023, 3:53pm UTC](https://forum.magicleap.cloud/t/how-to-implement-the-control-pointer-of-magic-leap-1-magic-leap-developer-toolkit-on-magic-leap-2/1754/1 "2023-04-17T15:53:45Z")

</div>

**Unity Editor version** : 2022.2.0f1  
**ML2 OS version** :1.2.0-dev2  
**MLSDK version** :1.2.0-dev2  
**Host OS** : (Windows/MacOS) Windows 11

I want to be able to move and rotate 3D objects with the Magic Leap 2 controller. I also want to be able to capture UI click events with the trigger of the Magic Leap 2 controller. In Magic Leap 1, there was the MLTK Control Pointer, and I want to implement this on Magic Leap 2.

[![](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/929759401408d38e0cb856ade429310921189153.jpeg "Control Pointer: Magic Leap Developer Toolkit") ](https://www.youtube.com/watch?v=v8jCkDps83Q)

By the way, the MRTK for Magic Leap 2 provides controller functionality, but I don't think rotating a 3D model was possible in the demo. I am exploring ways to build these functionalities in Magic Leap 2. Please let me know what the best approach is.

Thanks.  
[Sadao Tokuyama](https://www.linkedin.com/in/sadao-tokuyama/)  
[https://twitter.com/tokufxug](https://twitter.com/tokufxug)

---

<div class="post-metadata">

**Author:** ![kdowney](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kdowney/32/481_2.png) [@kdowney](https://forum.magicleap.cloud/u/kdowney)\
**Post date:** [April 19, 2023, 1:54pm UTC](https://forum.magicleap.cloud/t/how-to-implement-the-control-pointer-of-magic-leap-1-magic-leap-developer-toolkit-on-magic-leap-2/1754/2 "2023-04-19T13:54:06Z")

</div>

Hi @tokufxug, thank you for your question. With ML2, we use Unity's XR Interaction Toolkit. You can download the samples directly from the package. For a great overview, check out this video: [Unlock the Power of Unity with the NEW Interaction Toolkit 2.3.0 ! - YouTube](https://youtu.be/4ZgI5QhyO4Y)

---

<div class="post-metadata">

**Author:** ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)\
**Post date:** [April 20, 2023, 2:56pm UTC](https://forum.magicleap.cloud/t/how-to-implement-the-control-pointer-of-magic-leap-1-magic-leap-developer-toolkit-on-magic-leap-2/1754/3 "2023-04-20T14:56:22Z")

</div>

Hi Kevin,  
Thanks for the reply.

> You can download the samples directly from the package.

Where do I download this from? It would be helpful if you could be explicit about the URL or location.

I watched the YouTube video and it is about HandTracking and EyeTracking.

I don't see in this video that it is a way to collide a 3D object such as a Cube with the Controller's Ray and move the 3D object while the trigger is pressed.

Where in this video should I refer to implement the MLTK Control Pointern feature I shared?

---

<div class="post-metadata">

**Author:** ![ababilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/ababilinski/32/79_2.png) [@ababilinski](https://forum.magicleap.cloud/u/ababilinski)\
**Post date:** [May 24, 2023, 7:23pm UTC](https://forum.magicleap.cloud/t/how-to-implement-the-control-pointer-of-magic-leap-1-magic-leap-developer-toolkit-on-magic-leap-2/1754/4 "2023-05-24T19:23:20Z")

</div>

@tokufxug You can find the link to the XRI package here: [Samples | XR Interaction Toolkit | 2.3.2](https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.3/manual/samples.html)  
To install it:

1. Open the [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui.html)
2. Click on the **+** icon and from the drop down select **package name**
3. Enter `com.unity.xr.interaction.toolkit@2.3.2`

Here is the link to the [Github Example Project](https://github.com/Unity-Technologies/XR-Interaction-Toolkit-Examples/tree/main)

We currently don't have plans to update MLTK to support Magic Leap 2.
