+1
Pending Review

Timeline.Rigidbody.velocity does not work correctly

kdd 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 1

I set timline.rigidbody.velocity in Start function.

But it does not work correctly.

This is my code. Is this something wrong?

void Start() {
  timeline = GetComponent<Timeline>();
  Debug.Log(timeline.clock.timeScale);    // displayed 0.01
  timeline.rigidbody.velocity = new Vector3(100, 0, 0);
}
 
void Update() {
  Debug.Log(GetComponent<Rigidbody>().velocity);  // displayed (0, 0, 0)
  Debug.Log(timeline.rigidbody.velocity);   // displayed (1.0, 0.0, 0.0)
}
Chronos Version:
2.4.13
Unity Version:
5.6.4f1
Pending Review

Hi kdd,

Sorry for the late reply on this. It seems like this could be a script execution order issue. Can you try putting your custom script higher in the Script Execution Order project settings panel?