Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Stretch to end" for CreateGameObjects
#9
Hi
Indeed, Volume Spots does not consider the GO's rotation you set. Here is a quick fix for this:
in CGData.cs, go to the CGGameObject.RecalculateBounds method (line 2504) and replace the following
Code:
bounds.size = new Vector3(
                    rotationlessBoundsSize.x * Scale.x,
                    rotationlessBoundsSize.y * Scale.y,
                    rotationlessBoundsSize.z * Scale.z);
with this
Code:
bounds.size = Quaternion.Euler(Rotate) * new Vector3(
                    rotationlessBoundsSize.x * Scale.x,
                    rotationlessBoundsSize.y * Scale.y,
                    rotationlessBoundsSize.z * Scale.z);
Let me know if this fixed your issue.
Have a nice day
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: "Stretch to end" for CreateGameObjects - by _Aka_ - 06-05-2022, 05:04 PM

Forum Jump: