Edit mesh programmatically

Hi, I am new to CryEngine
I want to make a simple game where you can pick apples from a tree
I would love to add those apples randomly by getting all vertices form the mesh and with some checks (to get only vertices that points to the ground) and chose let's say 20 of those vertices and save the position to add apples on those positions
I am currently stuck at getting the vertices from the mesh, I can't find a way to get the mesh it self in the C++ code
I thought it will be as easy as getting the component and have a function that returns an array of vertices
If someone have a tip for me it would be so great! :D

Who is online

Users browsing this forum: No registered users and 1 guest