All Classes Namespaces Functions Variables Enumerations Properties Pages
Public Attributes | List of all members
RotationLimitHinge Class Reference

The hinge rotation limit limits the rotation to 1 degree of freedom around Axis. This rotation limit is additive which means the limits can exceed 360 degrees. More...

Inheritance diagram for RotationLimitHinge:
Inheritance graph
[legend]
Collaboration diagram for RotationLimitHinge:
Collaboration graph
[legend]

Public Attributes

bool useLimits = true
 Should the rotation be limited around the axis? More...
 
float min = -45
 The min limit around the axis. More...
 
float max = 90
 The max limit around the axis. More...
 
- Public Attributes inherited from RotationLimit
Vector3 axis = Vector3.forward
 The main axis of the rotation limit. More...
 

Additional Inherited Members

- Public Member Functions inherited from RotationLimit
void SetDefaultLocalRotation ()
 Map the zero rotation point to the current local rotation of this gameobject. More...
 
void SetDefaultLocalRotation (Quaternion localRotation)
 Map the zero rotation point to the specified rotation. More...
 
Quaternion GetLimitedLocalRotation (Quaternion localRotation, out bool changed)
 Returns the limited local rotation. More...
 
bool Apply ()
 Apply the rotation limit to transform.localRotation. Returns true if the limit has changed the rotation. More...
 
void Disable ()
 Disable this instance making sure it is initiated. Use this if you intend to manually control the updating of this Rotation Limit. More...
 

Detailed Description

The hinge rotation limit limits the rotation to 1 degree of freedom around Axis. This rotation limit is additive which means the limits can exceed 360 degrees.