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?
Sep 08 '12 at 04:25 PM
Sep 08 '12 at 03:09 PM
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.
Sep 09 '12 at 07:14 AM
Sep 09 '12 at 08:34 AM
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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Sep 08 '12 at 04:25 PM
Seen: 442 times
Last Updated: Sep 09 '12 at 08:34 AM
Attaching a Hinge Joint upon colliding with a rigidbody.
Detail Mesh doesn't collide.
How to solve the problem that the constraint is too elastic
how to make a script when u collide with an object it disappears
two box collides, on collition assign deferent value please ?
lagging when enemy is colliding with the player
Unity3d Arm collision
Destroy Projectile on collision
need help please!