HingeJoint Inherits from Joint
The HingeJoint groups together 2 rigid bodies, constraining them to move like connected by a hinge.
This joint is great for, well, doors, but can also be used to model chains, etc...
The HingeJoint has a motor which can be used to make the hinge spin around the joints axis. A spring which attempts to reach for a target angle by spinning around the joints axis. And a limit which constrains the joint angle.
Variables
|
motor
|
The motor will apply a force up to a maximum force to achieve the target velocity in degrees per second.
|
|
limits
|
The limits of the hinge joint.
|
|
spring
|
The spring attempts to reach a target angle by adding spring and damping forces.
|
|
useMotor
|
Enables the joint's motor.
|
|
useLimits
|
Enables the joint's limits.
|
|
useSpring
|
Enables the joint's spring.
|
|
velocity
|
The angular velocity of the joint in degrees per second.
|
|
angle
|
The current angle in degrees of the joint relative to its rest position. (Read Only)
|
Inherited members
Inherited Variables
Inherited Functions
Inherited Messages Sent
|
OnJointBreak
|
Called when a joint attached to the same game object broke.
|
Inherited Class Functions
|
operator bool
|
Does the object exist?
|
|
Instantiate
|
Clones the object original and returns the clone.
|
|
Destroy
|
Removes a gameobject, component or asset.
|
|
DestroyImmediate
|
Destroys the object obj immediately. It is strongly recommended to use Destroy instead.
|
|
FindObjectsOfType
|
Returns a list of all active loaded objects of Type type.
|
|
FindObjectOfType
|
Returns the first active loaded object of Type type.
|
|
operator ==
|
Compares if two objects refer to the same
|
|
operator !=
|
Compares if two objects refer to a different object
|
|
DontDestroyOnLoad
|
Makes the object target not be destroyed automatically when loading a new scene.
|