Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scale Deform Mesh Along Spline? / aligning colliders
#2
Hi

1. Using the Deform Mesh feature, you can't unfortunately scale a mesh along the path. You can scale the whole object using the Scale section in the Volume Spots module, under your group's tab. But this scaling will scale the whole object uniformally, so not what you are looking for if I understood correctly.
Being able to scale the defomed mesh is a good idea, I take note of it for future versions.

2. Does the end piece have to be deformed as well?
If no, please take a look at the attached example, made for another customer, that simulates a snake being deformed, and its head being at the end of the deformed mesh.
If yes, then make two Curvy Generators having a mesh deformation setup in them. Using the Range parameter of the Rasterize Path module, you can set what part of the path each generator should act on.

3. The box and capsule collider can, as far as I know, only be aligned on the world's axis. If I am wrong, please do the following to help me fix the issue:
- Make an example scene with a curvy generator that does a mesh deformtation with box and/or capsule colliders
- Export the created meshes. These will have the colliders setup in the way that doesn't fit your needs
- Duplicate one of the exported meshes, and set it up the way you would like the generators to set them up. Rename this object in such a way I can recognize it (for example "...._Corrected")
- Send me this setup
Once received, I will see what I can do.

I hope this helped
Have a nice day


Attached Files
.meta   SnakeAnimator.cs.meta (Size: 243 bytes / Downloads: 3)
.cs   SnakeAnimator.cs (Size: 791 bytes / Downloads: 6)
.meta   Snake.unity.meta (Size: 155 bytes / Downloads: 3)
.unity   Snake.unity (Size: 62.29 KB / Downloads: 3)
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
RE: Scale Deform Mesh Along Spline? / aligning colliders - by _Aka_ - 09-14-2022, 06:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_

Forum Jump: