Hi, I’m using unity 4.1.0f4 and when I select build settings. Then select android,there is always an error(will update later with the actual error message) but what I need is the sdk android version that will work, so far I’ve downloaded 3 different one,and none of them work.
Where did you create the variable body?
Unknown identifier body (i think) means the you never created a variable with that name thus you cannot use it.
E.G:
Where is your
Sorry about that Agent_007 i’ve placed the wrong code in my previous post.
here is the code that has the actual error
if (!springJoint)
{
var go = new GameObject("Rigidbody dragger");
body = go.AddComponent ("Rigidbody");
springJoint = go.AddComponent ("SpringJoint");
body.isKinematic = true;
}
error
MyjavaScriptFile.js(60,22): BCE0019: ‘isKinematic’ is not a member of ‘Object’.
These are the declarations that i’ve made in the beginning of my code
var spring = 50.0;
var body = null;
var damper = 5.0;
var drag = 10.0;
var angularDrag = 5.0;
var distance = 0.2;
var pushForce = 0.2;
var attachToCenterOfMass = false;
var highlightMaterial : Material;
private var highlightObject : GameObject;
private var springJoint : SpringJoint;
function Start () {
}