Forum rules - please read before posting.

Moveable.cs Kinematic Rigidbody Fix

edited September 2014 in Engine development
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

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.