MoveTo Sequencer command not working correctly on kinematic RigidBodies

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
zsoi
Posts: 1
Joined: Fri Oct 11, 2019 11:59 am

MoveTo Sequencer command not working correctly on kinematic RigidBodies

Post by zsoi »

I've had some issues getting the MoveTo command to work properly. In the end it seemed that RigidBody.MoveRotation() and RigidBody.MovePosition() doesn't do anything for kinematic rigid bodies and the transform has to be moved instead.

I fixed this locally by replacing the "

Code: Select all

if (subjectRigidbody != null)
" check with "

Code: Select all

if (subjectRigidbody != null && !subjectRigidbody.isKinematic)
" in

Code: Select all

TryHandleMoveToInternally()
.

DialogueSystem 2.2.0
Unity 2019.2.4f1
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: MoveTo Sequencer command not working correctly on kinematic RigidBodies

Post by Tony Li »

Good catch! I'll fix that in the next release.
Post Reply