Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rotation Scatter
#1
Photo 
Hello, I am trying to get models to be randomly placed along the spline. Using the template Spot GameObjects, I cant seem to get fully random rotation.
Its sort of random. I'm looking to do something more like the second image. Could write this in myself but thought I would check here first.

I am sure I am missing something cause it seems like everything was thought of w this tool!

Using Curvy: (partly random)
[Image: uc?export=download&id=1_xjtUF1ZiXq6xpMRYZME91Qq1dZLNK0y]


Rotated Manually: (more random)
[Image: uc?export=download&id=1TxNgbdFbyUS56kJTJ6dAWkUyXCi727es]

thanks!
Reply
#2
Hi,
It's funny you are writing about this, because I am in a middle of a heavy refactoring of the Volume Spots to fix a lot of things and add new features. I will write you to send you the new module so you can enjoy the new features (I think the update it will be part of will be ready in a week or two) and explain to you how to patch your Unity version. I will do that tomorrow, it's 3 am here, and I need to go sleep.
But to fix your issue: go to the BuildVolumeSpot.getSpot method, and replace all occurrences of Random.Range(-1, 1) with Random.Range(-1f, 1)
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
#3
Perfect! yeah that makes sense. i've often over looked that one myself.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Look rotation viewing vector is zero skyboard 6 3,325 12-02-2019, 06:53 PM
Last Post: _Aka_
  Spawning object with correct rotation at spline end arrnav96 2 1,436 05-21-2019, 02:19 PM
Last Post: arrnav96
  Rotation issue on a Parented Spline Controller Karthik7Nike 6 3,763 12-07-2018, 09:35 AM
Last Post: _Aka_
  Y Rotation Locks at 90degrees skyboard 1 2,017 06-27-2018, 09:50 AM
Last Post: _Aka_

Forum Jump: