- Home /
Control an gameobject in a specific area
Hello. I want the movement of the first cube to be restricted to distance between him and the another cube. And i try to make this think like this:
I have 2 sphere, i want them to be my joints and set a rope between them. But using SpringJoint is not working. I have rigidbody on my cubes and spheres. I'm beginner so any suggestion will help me a lot !
Seems like you need Hinge Joint component ins$$anonymous$$d of Spring Joint. Try to use it. And setup "Anchor" value so yellow arrow will be between two cubes.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Assign spells/abilities dynamically to a GameObject? 0 Answers
How to make a Interactive Computer Screen in Unity 5.5? 1 Answer
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
how to show coordinates on the prefab? Using multidimensional arrays? 0 Answers