All Classes Namespaces Functions Variables Enumerations Properties Pages
Public Member Functions | Public Attributes | List of all members
RotationLimit Class Referenceabstract

The base abstract class for all Rotation limits. Contains common functionality and static helper methods More...

Inheritance diagram for RotationLimit:
Inheritance graph
[legend]

Public Member Functions

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...
 

Public Attributes

Vector3 axis = Vector3.forward
 The main axis of the rotation limit. More...
 

Detailed Description

The base abstract class for all Rotation limits. Contains common functionality and static helper methods