I'm doing scripting in the game engine. I have two basic objects, a "SeaFloor" and "Kelp". I have python classes for each and the game engine.
My goal is to add the Kelp object to the scene and root it to the SeaFloor, so in the physics of the game it won't be moved by fish or current. Also, as the kelp grows, I only want it to grow "up".
I can get the kelp to appear using:
kelp = self.scene.addObject("Kelp", "SeaFloor")
kelp.worldPosition = pos
I think I have to do this with constraints, but I don't understand them very well. I would appreciate some advice on how to lock those two together.