# Issue with Raycaster and modified BufferGeometry

**URL:** <https://discourse.threejs.org/t/issue-with-raycaster-and-modified-buffergeometry/12779>\
**Category:** Questions\
**Tags:** raycaster\
**Created:** [February 16, 2020, 2:19am UTC](https://discourse.threejs.org/t/issue-with-raycaster-and-modified-buffergeometry/12779 "2020-02-16T02:19:01Z")\
**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 16, 2020, 9:09am UTC](https://discourse.threejs.org/t/issue-with-raycaster-and-modified-buffergeometry/12779/2 "2020-02-16T09:09:06Z")

</div>

Hi!  
Try this:

```auto
      let vertexAttribute = geometry.getAttribute('position');
      vertexAttribute.setY(2, 5.0);
      vertexAttribute.needsUpdate = true;
      geometry.computeBoundingSphere(); // add this line
      geometry.computeBoundingBox(); // add this line

```

Some explanations: [[Solved] Raycaster missing half a plane - bug?](https://discourse.threejs.org/t/solved-raycaster-missing-half-a-plane-bug/4802/2)

---

_[View the full topic](https://discourse.threejs.org/t/issue-with-raycaster-and-modified-buffergeometry/12779)._
