How to manipulate 3D models?

Hi, I was wondering if anyone could point me in the right direction, or provide some information on manipulating 3D models at run time. This is something I’ve never looked at before so I’m a bit lost. Some of the things I want to do include, resizing parts of meshes, crating holes in meshes, re-shaping meshes, etc.

Look up the Mesh class in the docs.

–Eric

1 Like

Thanks!

Modeling a mesh at runtime is quiet an advanced topic…

It’s possible generate meshes at runtime, for that you need to define the vertices and triangles (and eventually other data) of your mesh through a Mesh object.

Depending on what you want to achieve, the toughest job could be the modeling part. What do you want to do at the end? A sort of in-game modeling tool where the player have a lot of freedom to create it’s own object or something else?

yeah kinda, players will have the ability to change objects, in an immersive way. I’m now having issue on generating the triangle data, I’ve been writing some stuff down to work out the math, but I think it’s like masters level maths. For simple 2d flat objects I have worked out how to put dynamic holes in, but when you want high detail non-flat surfaces it adds a lot of complexity. Any advice?

I haven’t even got to thermal dynamic and gas simulation part of my game yet!