MoveTo() Sequencer Command

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

MoveTo() Sequencer Command

Post by nathanj »

I feel like there is a bug with the MoveTo() Sequencer command. The other commands I have tried from the DST work but for some reason MoveTo () is very stubborn ;)

For example, I placed two cubes in my scene Cube1 and Cube2. I disabled the mesh tenderer of Cube2 and moved it to a different position. My sequencer command is simply: MoveTo(Cube1,Cube2,5) I expect that when triggered Cube1 would be moved to Cube2's position over 5 seconds. But nothing happens.

Should add, I'm using Unity 2018.1.2f1 and DS 2.0

Is there something I am missing, or misusing?
Nathan
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Re: MoveTo() Sequencer Command

Post by nathanj »

Nevermind,

I just tried this is a demo scene and it worked.

Obviously something weird in my original scene.

Edit: Turns out someone had put a rigidbody component on our player with constraints, no idea why they did that but that is what was preventing the player's transform from being changed.

Nathan
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: MoveTo() Sequencer Command

Post by Tony Li »

Hi Nathan,

Glad you got to the bottom of it. BTW, in case anyone's wondering, if the subject has a rigidbody, MoveTo() will properly use Rigidbody.MovePosition() instead of moving the transform. If there's no rigidbody, it will move the transform.
Post Reply