[英]How do I move an individual vertex in AFrame?
在 Three.js 我可以使用:
myObject.geometry.vertices[i].y += 12;
但是在 A-Frame 中,console.log 中甚至都看不到任何內容。 我已經看到在 0.2.0 和 0.3.0 之間,一切都默認為緩沖幾何體和頂點被隱藏。 覆蓋它是可能的,但現在在 0.5.0 中,console.log 中甚至沒有列出幾何數組。
console.log(myObject.geoetry); //now returns 'undefined'.
console.log(myObject); //returns the markup only, no array!?
目前有沒有辦法解決單個頂點來改變它們的位置?
設置geometry="buffer: false"
。
https://aframe.io/docs/0.5.0/components/geometry.html#base_properties_buffer
然后得到幾何:
el.getObject3D('mesh').geometry
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.