I’m looking for some info on cutting a mesh. I think I have a process.
I want a laser beam to shoot into a 2d mesh (for a 2d game). First, the faces that overlap the laser are to be removed. Next, the four laser penetration vertex points are added (the two have to be calculated somehow). Then, the whole thing is Delaunayed. Finally the face is popped out.
I see a lot of problems on the horizon: I want the mesh to be a Bullet collision mesh, but I’m wondering if the engine will explode if I change the geometry data while it’s running. I don’t want the texture to jitter every time it’s projected on the mesh. Also, I would like the points to be in some sort of order so I could extrude the shape into 3d for use with panda lighting. There’s probably more to consider. Does anyone have any experience with something like this?
Edit: What happens if the laser cuts the object in two? I don’t want Delaunay gluing my objects together. Also, how do I determine if the one object became two for the physics engine?
Edit: does panda3d have a Delaunay triangulator? I saw something on the wiki under Bullet softbodies.