Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modifying a Deformed Mesh
#1
Hi guys! Can you help me with my problem: I am trying to make a clone of Snake Run Race (https://play.google.com/store/apps/detai...ttack.game) and I have It's great to use spline movement. I just use the mesh deformation and control the spline with the mouse. The controls really look the same. But there was a problem and I do not understand how to solve it. The bottom line: the snake eats the apple and it grows a little. Scale cannot be used in this case, I would like to add polygons to a mesh that is already generated in the generator. How to be? Any thoughts?
Reply
#2
Hi
If I understood you well, you want to apply an operation (mesh modification) on the generated mesh each time it is updated.
To do so, listen to the OnRefresh event of the Create Mesh module:
https://api.curvyeditor.com/860/FluffyUn..._OnRefresh
In your event handler use the usual Unity mesh related methods to modify the mesh
https://docs.unity3d.com/ScriptReference/Mesh.html
Did this help?
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to generate UVs along deformed and copied mesh? kubak 1 309 03-18-2026, 08:34 PM
Last Post: _Aka_
  Replace deform mesh on volume spots Kokoriko49 1 2,322 06-09-2025, 06:49 PM
Last Post: _Aka_
  Mesh Generation between two splines vatan 4 3,623 02-14-2025, 07:11 AM
Last Post: vatan
  Create Mesh Node, Make Static Options rickgplus 1 1,833 01-23-2025, 10:12 AM
Last Post: _Aka_

Forum Jump: