- Home /
How to make two objects connected by a joint collide?
I have a spaceship, controlled by physics, and a cube as "cargo". I want to use a spring joint as a tractor beam. It works pretty well, but I noticed that the two objects do not collide.
How do I make them collide?
Answer by Zionviller · Sep 09, 2012 at 07:14 AM
So I continued to play around and I found a solution.
I made a third (empty) object to act as a middleman between the space ship and the cargo. I connected the ship to the middleman with a spring then the middleman to the cargo with a fixed joint.
In addition:
I put the "middleman" inside the cargo prefab with no problems. I imagine all "tractor beam-able" objects will have this "middleman" in their prefabs.
But maybe it's not quite necessary, maybe I'll have the ship's tractor beam shoot out the "middleman" and attach to whatever it collides with. But this is all theory at the moment.
Your answer
Follow this Question
Related Questions
How to connect two objects on collision? 1 Answer
Collision problem 0 Answers
switch object when collided with? 2 Answers
Attaching a joint on the instantiated object and connecting it with the collided object. 1 Answer
Objects Touching? 1 Answer