# Restrict an object to another?

**URL:** <https://discourse.threejs.org/t/restrict-an-object-to-another/1780>\
**Category:** Questions\
**Tags:** geometry\
**Created:** [February 5, 2018, 10:06pm UTC](https://discourse.threejs.org/t/restrict-an-object-to-another/1780 "2018-02-05T22:06:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [February 6, 2018, 8:33am UTC](https://discourse.threejs.org/t/restrict-an-object-to-another/1780/2 "2018-02-06T08:33:16Z")

</div>

Actually, creativity is up to you 😉

Here is a very rough concept, based on `THREE.Raycaster()` and `THREE.ExtrudeGeometry()`.  
[https://jsfiddle.net/prisoner849/L7njaghm/](https://jsfiddle.net/prisoner849/L7njaghm/)

![PierceIt](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/1/152e8c7d15f455186963e2f5adec36289d10d668.png)

---

_[View the full topic](https://discourse.threejs.org/t/restrict-an-object-to-another/1780)._
