Class RotationConstraint
Inheritance
RotationConstraint
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public sealed class RotationConstraint : Behaviour, IConstraint, IConstraintInternal
Properties
constraintActive
Declaration
public bool constraintActive { get; set; }
Property Value
locked
Declaration
public bool locked { get; set; }
Property Value
rotationAtRest
Declaration
public Vector3 rotationAtRest { get; set; }
Property Value
rotationAxis
Declaration
public Axis rotationAxis { get; set; }
Property Value
rotationOffset
Declaration
public Vector3 rotationOffset { get; set; }
Property Value
|
Improve this Doc
View Source
sourceCount
Declaration
public int sourceCount { get; }
Property Value
weight
Declaration
public float weight { get; set; }
Property Value
Methods
AddSource(ConstraintSource)
Declaration
public int AddSource(ConstraintSource source)
Parameters
Returns
|
Improve this Doc
View Source
GetSource(Int32)
Declaration
public ConstraintSource GetSource(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
GetSources(List<ConstraintSource>)
Declaration
public void GetSources(List<ConstraintSource> sources)
Parameters
|
Improve this Doc
View Source
RemoveSource(Int32)
Declaration
public void RemoveSource(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
|
Improve this Doc
View Source
SetSource(Int32, ConstraintSource)
Declaration
public void SetSource(int index, ConstraintSource source)
Parameters
|
Improve this Doc
View Source
SetSources(List<ConstraintSource>)
Declaration
public void SetSources(List<ConstraintSource> sources)
Parameters
Implements
Extension Methods