- Home /
Make a capsule collider BETWEEN 2 objects
hey i am making a 3d kite flying game and i am making the ropes using a capsule collider .so how can i make the collider such that it stays between both the player and the kite as in the pic.it should also move with the kite and the player and detect collisions between the player and the kite .please help!
capture.png
(96.1 kB)
Comment
The big lines: $$anonymous$$ake a gameobject with a child having the capsule collider. Set the height of the collider based on the distance between the 2 objects and the local rotation of the child containing the capsule collider on the run with a script.
that worked great!thanks. should have posted as an answer though.