Error getting/moving to "position of [item]" (bugreport?)


I can’t find the error in the code in this CoSpace. (click the bird)
When ‘Bird’ is removed from it’s group - and then reassigned to it - it seems to work though. There is no difference in code nor items. Is this a bug or do I mis something?

1 Like

Try to unlock the bird. It works for me!


Hi @Lara_Rollo22,


Seems like any edit to the bird will solve the problem. But in my (students) mind(s) there shouldn’t have been a problem in the first place…?

1 Like

Yes, I think so too but I don’t know how to explain it. Sorry…

Hi @BvdM,

It’s to do with the position of the item - when an Item is attached to another object, it’s position changes from global (position within the scene) to local (position in relation to the Item it’s attached to).

Therefore, when you move/transition an Item from it’s local position, you currently cannot give it global co-ordinates of another object and expect it to go there.

You can, however, add the target object as a child of the parent object before running the same code, and it will work, because both Items are using local position.

That’s what I’ve done with this fix:

Hope that helps! Let me know if you have any further questions about this. If this solves your problem, please mark this post as the Solution.

Many thanks,
Geoff @ TechLeap