Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help creating a wedge
#2
(04-23-2024, 03:10 PM)Thinkurvy Wrote: Would it be possible to add a "Translation" tab that mimics the Advanced Scaling options?

I just implemented this functionality myself... somewhat: only for Y displacement (as that was what I needed) and not on a separate tab, but inside the "Scale" tab... dirty, but quick '^^

In case anyone is interested, this is what I did:

In BuildShapeExtrusion.cs (in "Refresh" method) I replaced the top line with the bottom one:
Code:
//Matrix4x4 mat = Matrix4x4.TRS(path.Positions.Array[sample], pathRotation, scale);
Matrix4x4 mat = Matrix4x4.TRS(path.Positions.Array[sample] + (TransY != 0f ? (Vector3.up * TransY * TransMultiplierY.Evaluate(path.RelativeDistances.Array[sample])) : Vector3.zero), pathRotation, scale);

I also created the relevant TransY and TransMultiplierY  in ScalingModule.cs, using the existing ScaleY and ScaleMultiplierY  as a reference.
Reply


Messages In This Thread
Help creating a wedge - by Thinkurvy - 04-23-2024, 03:10 PM
RE: Help creating a wedge - by Thinkurvy - 04-24-2024, 09:44 AM
RE: Help creating a wedge - by _Aka_ - 04-24-2024, 12:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating splines from the surface of existing 2d colliders Monomirror 2 2,720 08-18-2021, 03:55 PM
Last Post: Monomirror
  Creating splines at run time jamesunity 6 7,178 07-17-2020, 10:17 PM
Last Post: jamesunity
  Creating a ring of rectangles, then create series of rings to create a cylinder mchangxe 2 4,102 09-07-2019, 10:17 AM
Last Post: _Aka_
  Creating a road dazz777 3 5,470 06-21-2019, 09:36 AM
Last Post: _Aka_

Forum Jump: