Pending Review

Timeline.Rigidbody.velocity does not work correctly

kdd 4 years ago updated by Lazlo Bonin (Lead Developer) 3 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:
Unity Version:
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?