C++ Script for Painting Mesh

Hello.

I’m stumped regarding the script to my 3D game.

  • The player opens the game with an entrance and exit on a background. The player needs to connect the entrance and exit by drawing a road using their mouse (or finger if on the mobile app).
  • The player then needs to navigate their character on the drawn road from the entrance to the exit. They need to move quickly as the road disappears gradually. The exit takes them to the next level in which drawing the road becomes more complex (navigating around objects, collecting objects, etc.)

I am thinking I need a script to have

  • an interface for a player to draw on the background
  • turn the drawing into a mesh with colliders
  • having the mesh disappear gradually

I tried a few searches, looked at a few forums, but I am not sure where to start. Any guidance would be helpful.

I can get you the first two right in my MakeGeo project.

Look for the testfingerpolygons scene.

MakeGeo is presently hosted at these locations:

https://bitbucket.org/kurtdekker/makegeo

Thank you very much! I’ll check out those locations.