Assets/DragRigidbody.js(31,22): BCE0019: 'isKinematic'

Another post said that this needs to be cast to rigidbody before setting the property. Can anyone supply the correct syntax?

I explicitly instantiated it like so:

var body : Rigidbody;
body = …

body.rigidbody.isKinematic = true;

compiles but the script doesn’t seem to be working…

works for me