Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamics object along the curve
#1
hi all this possible to move Dynamics object along the curve
Reply
#2
Sure, just add the FollowSpline component to the object you want to move along a spline.
Reply
#3
thank's yes i have add that's 
CurvySplineSegment[]  sp = mSpline.Add (vv);
when i try sp[1] for transform position i say somethink's i try understand the doc

it's possible to set the % follow value for get dynamic gravity at end

it's possible to get % of follow curve for the the dynamic more realistik
Reply
#4
I'm sorry, but I don't understand this.
Reply
#5
  if (mSpline.Count > 1) {    Walker.enabled =  (true);
   float pos = Walker.CurrentTF ;
   Debug.Log ("pos "+pos /Walker.Initial.MaxDistance);
   if (Walker.Initial.MaxDistance/pos  > 0.9f){
   Walker.enabled =  (false);
   }   }else{
   Walker.enabled =  (false);
   
     }
 

ok i will be back with better explain to my trouble thank's
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Find if object is on spline path nciofi 1 746 07-10-2018, 09:23 AM
Last Post: _Aka_
  Moving spline controller with parent game object jvalenzuela 7 2,292 06-02-2018, 10:44 PM
Last Post: _Aka_
  IsInitialized is false after SetActive on parent object mgstauff 7 2,095 05-09-2018, 06:24 PM
Last Post: _Aka_
  Bezier curve takes multiple frames to resolve freqout 6 2,142 04-20-2018, 03:19 PM
Last Post: _Aka_

Forum Jump: