When trying to move an object with a kinematic rigidbody I got this error:
Actor::setAngularVelocity: Actor must be (non-kinematic) dynamic!
UnityEngine.Rigidbody:set_angularVelocity(Vector3)
AC.Moveable:Move(Vector3, MoveMethod, Single, TransformType) (at Assets/AdventureCreator/Scripts/Object/Moveable.cs:107)
To fix it I added this check before Moveable.cs line 107 (and line 165):
if(!GetComponent<Rigidbody>().isKinematic)
Comments