Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FollowSpline Speed Question
#1
Hey... We were talking on Unity's forum and I am moving that thread here to your support forum Curvy thread.

I currently have a custom script which is called during an "[font]OnTriggerEnter", that detects when my character running along the spline collides with a sphere collider.  I have created dynamic sphere colliders which are used as waypoints on my path.  As soon as my character collides with a waypoint sphere collider, I want to dynamically change the speed of my character.

My character is using your "Follow Spline" script (with the updateAbsolutePrecise function) which moves it along the spline path, and I am looking to dynamically change the speed value for the Follow Spline script from my OnTriggerEnter function on my custom script.  

Do you have a specific method or approach to easily do this as it seems I am having difficulty accessing and setting variables and functions which use static, private and protected options.  
[/font]
 
Reply


Messages In This Thread
FollowSpline Speed Question - by mwitt8178 - 06-11-2014, 06:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Controler Speed from metadata Bryan Thatcher 4 45 06-25-2024, 11:18 AM
Last Post: _Aka_
  Question about Timeline support GhuaGhua 3 9 05-21-2024, 01:33 PM
Last Post: _Aka_
  Newbie Question: Uniformly increase spacing between volume spots? SAMYTHEBIGJUICY 1 9 09-01-2023, 03:38 PM
Last Post: _Aka_
  I have a question about curvySpline haifeng.huang 12 87 07-14-2023, 09:34 AM
Last Post: _Aka_

Forum Jump: