Jump to content

[SOLVED] Initialisation of object with transfrom nodes


photo

Recommended Posts

Posted

Hello!

 

I'm trying to set up something akin to a copy of the urban driving car demo, with the vehicle created and set up largely through script. I have a template node that contains a body with a basic shape, and a number of WorldTransformBone nodes. When loading this node, I'm getting an error that says it can't find class Object*__ptr64 in class WorldTransformBone*__ptr64 - is there something special that needs to be done to initialise this kind of thing?

 

Thanks!

Posted

Hi Oliver!

 

I think that's because you're trying to assing a variable with a wrong type (WorldTransformBone type cannot be assigned to a variable with Object type), though I'm not sure about this. Could you please show your code or, even better, your scene?

 

Thanks!

Posted

Hi again,

 

Thanks for that - you are indeed correct, I was pulling out named WorldTransformBones and trying to store them in an array of type Object; took a bit of tracking down though; it'd be nice if the error messages could return a line number, or at least the name of the responsible variable!

 

Thanks!

×
×
  • Create New...