Collision On Splne

Post script, no one can guess what’s up. But, the standard approach would be:

  • run Construction Script
  • iterate over spline points
  • add Spline Mesh Components - you do not need overly complex meshes, consider performance. A low-poly cylinder with 4-5 rings should be fine. Or a box with a some subdivision.
  • apply spline location and tangents to the SMCs
  • set Start Scale and End Scale of the SMCs - at no point should you be scaling the actual mesh yourself. No clue how the rest of your script looks like, but this part could be close to:

  • adjust each Spline Component point’s scale in viewport
  • when it comes to handling collision, I’d start with this:

ObjectType should be a custom River type.

1 Like