How do you use the rigid body constraint with the "add object" actuator?

Hello everyone!

I’m trying to make a game where an object from layer 2, gets added to layer 1, and is then used as a target for the rigid body constraint.

(Both demonstrations are in 1 gif)

gif%203

As you can see on the first part of the gif: the constraint works perfectly when both the objects are on the same layer.

2nd part of the gif: I have one of the objects spawned from a different layer, and the constraint doesn’t work at all!

It would be much appreciated if anyone can tell me how to use the rigid body constraint, with an object that is spawned in from a different layer.

Thank you!

Hey

I would try to create scripts that only create the constraint when I find the necessary objects in the scene, your problem is to generate an incomplete constraint. for that you will need python

Ok thanks. i don’t really know python and i recently switched to unity game engine, but thank you for the reply