Page 1 of 1

MoveTo() Sequencer Command

Posted: Tue Jun 12, 2018 10:17 pm
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

Re: MoveTo() Sequencer Command

Posted: Tue Jun 12, 2018 11:19 pm
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

Re: MoveTo() Sequencer Command

Posted: Wed Jun 13, 2018 8:20 am
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.