Can you please tell me whether it is possible to create a fixed joint programmatically and also to remove it programmatically? If you can, how?
1 answer
Welcome to StackOverflow.Ru
creating a FixedJoint, and any other component :
FixedJoint joint gameObject.AddComponent<FixedJoint>(); indication of connected body:
joint.connectedBody = collision.rigidbody; deletion:
Destroy (joint); - and what the second line of the code means is not quite understood - danchikon 10 danchikon10
- @ danchikon10danchikon10 joint connects 2 objects, for example, I added the body assignment code from the collision description - Stranger in the Q
- what is a collision - danchikon 10 danchikon10
- I'm just a beginner - danchikon 10 danchikon10
- @ danchikon10danchikon10 collision checking is a math that returns whether the objects en.wikipedia.org/wiki/Collision_detection - Stranger in the Q
|