how can i get a vertex from a mesh and change its position?
sorry if this was too easy and should be on the newb help board
set vertex position
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: set vertex position
Suppose you have a mesh called "m".
I put vertices as "void* " to tell you what the function itself returns. In actuality, void* should be replaced by whatever vertex type is used in the mesh. I believe this is irr::video::S3DVertex by default.
Code: Select all
void* vertices = m->getMeshBuffer(0)->getVertices();
Re: set vertex position
i was set off by the fact that it returned void, and therefore didnt understand that it should be placed in a S3DVertex. Thanks, i will try what you said
edit:
thanks a lot!
http://puu.sh/4vwGX.PNG
edit:
thanks a lot!
http://puu.sh/4vwGX.PNG