Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relative Scaling
#1
Hi i try get relative scaling

so i have try 

when i change parent of input spline shape and duplicate my generator i lost reference

i try right this script 

[Image: 0015d8730a.jpg]

[Image: 236f156042.jpg]


i don't find radius input spline shape in api 

thank's

for exemple try get control this result by script

https://www.google.com/imgres?imgurl=htt...mrc&uact=8
Reply
#2
Hi,
The simplest solution is to use the provide Circle shape (class name CsCircle) and modify its Radius property
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
i'am sorry for asking for exemple
because my mathematical is old school
and i lost my day on it so help is welcome

based on generator transform scale
when i scale i call fonction
cSCircle.Radius = transform.localScale.x*facteur / 0.5f;

and somethinks happen but i don't found goal ;(

i found easy way use two CsCircle working
i will look if this do the job i need make
thank's
Reply
#4
Hi,
I attached a zip with a scene and a script. The script goes through the assigned Curvy Generators, and modifies the radius of their input splines.
This solution does not modify the scaling vector, but instead updates the Radius property of the circles. If, for your own needs, have to set the scaling, then make sure to use the latest Curvy version (the 5.2.0), and set the "Use Global Space" to true in the CG modules "Input Spline Path" and/or "Input Spline Shape"
Did I answer to all your questions?
Have a nice day


Attached Files
.zip   Circles Scaler.zip (Size: 80.17 KB / Downloads: 1)
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
And here is an example using the scaling

Please keep in mind that these are test codes, that assume that everything is set up properly in the scenes.


Attached Files
.zip   Circles Scaler_2.zip (Size: 80.16 KB / Downloads: 1)
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Not all game objects on list scaling. Horibe 3 402 06-05-2019, 01:00 PM
Last Post: _Aka_
  Position in path relative to Z world axis socoman3 5 6,427 02-09-2015, 02:34 PM
Last Post: Jake

Forum Jump: