class in UnityEngine
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
Joint that attempts to keep two Rigidbody2D objects a set distance apart by applying a force between them.
|Should the distance be calculated automatically?
|The amount by which the spring force is reduced in proportion to the movement speed.
|The distance the spring will try to keep between the two objects.
|The frequency at which the spring oscillates around the distance distance between the objects.
|The joint's anchor point on the object that has the joint component.
|Should the connectedAnchor be calculated automatically?
|The joint's anchor point on the second object (ie, the one which doesn't have the joint component).
|Enabled Behaviours are Updated, disabled Behaviours are not.
|Has the Behaviour had active and enabled called?
|The game object this component is attached to. A component is always attached to a game object.
|The tag of this game object.
|The Transform attached to this GameObject.
|The Rigidbody2D attached to the Joint2D.
|The force that needs to be applied for this joint to break.
|The torque that needs to be applied for this joint to break.
|The Rigidbody2D object to which the other end of the joint is attached (ie, the object without the joint component).
|Should the two rigid bodies connected with this joint collide with each other?
|Gets the reaction force of the joint.
|Gets the reaction torque of the joint.
|Should the object be hidden, saved with the Scene or modifiable by the user?
|The name of the object.
|Calls the method named methodName on every MonoBehaviour in this game object or any of its children.
|Is this game object tagged with tag ?
|Returns the component of Type type if the game object has one attached, null if it doesn't.
|Returns the component of Type type in the GameObject or any of its children using depth first search.
|Returns the component of Type type in the GameObject or any of its parents.
|Returns all components of Type type in the GameObject.
|Returns all components of Type type in the GameObject or any of its children.
|Returns all components of Type type in the GameObject or any of its parents.
|Calls the method named methodName on every MonoBehaviour in this game object.
|Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.
|Gets the component of the specified type, if it exists.
|Gets the reaction force of the joint given the specified timeStep.
|Gets the reaction torque of the joint given the specified timeStep.
|Returns the instance id of the object.
|Returns the name of the object.
|Removes a GameObject, component or asset.
|Destroys the object obj immediately. You are strongly recommended to use Destroy instead.
|Do not destroy the target Object when loading a new Scene.
|Returns the first active loaded object of Type type.
|Returns a list of all active loaded objects of Type type.
|Clones the object original and returns the clone.
|Does the object exist?
|Compares if two objects refer to a different object.
|Compares two object references to see if they refer to the same object.
|Called when a Joint2D attached to the same game object breaks.