# How can I attach Math Plane to an Object3D?

**URL:** <https://discourse.threejs.org/t/how-can-i-attach-math-plane-to-an-object3d/17953>\
**Category:** Questions\
**Tags:** math\
**Created:** [August 17, 2020, 10:46am UTC](https://discourse.threejs.org/t/how-can-i-attach-math-plane-to-an-object3d/17953 "2020-08-17T10:46:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ja212](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@ja212](https://discourse.threejs.org/u/ja212)\
**Post date:** [August 17, 2020, 10:46am UTC](https://discourse.threejs.org/t/how-can-i-attach-math-plane-to-an-object3d/17953/1 "2020-08-17T10:46:42Z")

</div>

I have a movable box. I want to attach the clipping planes to it so that whenever I move it the clipping planes move with it.

Is that possible? If not, what is the best way to do so ?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [August 17, 2020, 1:59pm UTC](https://discourse.threejs.org/t/how-can-i-attach-math-plane-to-an-object3d/17953/2 "2020-08-17T13:59:55Z")

</div>

It’s not possible to do this attachment since instances of `THREE.Plane` are no 3D objects but pure mathematical representations.

That means you have to transform the planes in 3D space by yourself.

---

<div class="post-metadata">

**Author:** ![Bossie](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/bossie/32/14371_2.png) [@Bossie](https://discourse.threejs.org/u/Bossie)\
**Post date:** [October 19, 2020, 1:40pm UTC](https://discourse.threejs.org/t/how-can-i-attach-math-plane-to-an-object3d/17953/3 "2020-10-19T13:40:23Z")

</div>

Can anyone point me in the right direction on how to achieve plane transformation?

I have the same problem, I want planes to move around with the groups they are “attached” to.

---

<div class="post-metadata">

**Author:** ![GlifTek](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gliftek/32/13131_2.png) [@GlifTek](https://discourse.threejs.org/u/GlifTek)\
**Post date:** [October 24, 2020, 2:04am UTC](https://discourse.threejs.org/t/how-can-i-attach-math-plane-to-an-object3d/17953/4 "2020-10-24T02:04:49Z")

</div>

Look at the code for this example

[\> stencil clipping planes](https://threejs.org/examples/webgl_clipping_stencil.html)

You’ll see that the origins for the math planes are set in the code.

You could have those coords be variables that change according to the corresponding coordinates of your object you want them to follow.
