# Updating plane vertices in animation loop

**URL:** <https://discourse.threejs.org/t/updating-plane-vertices-in-animation-loop/21083>\
**Category:** Questions\
**Tags:** math, geometry\
**Created:** [November 28, 2020, 1:13pm UTC](https://discourse.threejs.org/t/updating-plane-vertices-in-animation-loop/21083 "2020-11-28T13:13:43Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![hofk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hofk/32/44944_2.png) [@hofk](https://discourse.threejs.org/u/hofk)\
**Post date:** [November 28, 2020, 7:11pm UTC](https://discourse.threejs.org/t/updating-plane-vertices-in-animation-loop/21083/8 "2020-11-28T19:11:02Z")

</div>

> [@ometecuthli](#):
>
> I took a look at BufferGeometry but I really dont understand it. I got a “plane” but after that I have no clue on how to animate it like I did in my current example. It goes above my head lol, if possible i’d rather stick to simple geometry for now

If you are new, the examples from the collection ( [Collection of examples from discourse.threejs.org](https://discourse.threejs.org/t/collection-of-examples-from-discourse-threejs-org/4315) ) may help you.

Based on the example from 2019 [ColorStripeChanging](https://hofk.de/main/discourse.threejs/2019/ColorStripeChanging/ColorStripeChanging.html) I have animated a wave.

See [ColorWave](https://hofk.de/main/discourse.threejs/2020/ColorWave/ColorWave.html)

Some things have changed since 2019. Instead of .addAttribute now `.setAttribute` .

Also the notation for dynamic has changed.  
Now `.setUsage( THREE.DynamicDrawUsage )`

Hope I could help. 🙂

---

_[View the full topic](https://discourse.threejs.org/t/updating-plane-vertices-in-animation-loop/21083)._
