Class AimConstraint
Inheritance
AimConstraint
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public sealed class AimConstraint : Behaviour, IConstraint, IConstraintInternal
Properties
aimVector
Declaration
public Vector3 aimVector { get; set; }
Property Value
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
upVector
Declaration
public Vector3 upVector { get; set; }
Property Value
weight
Declaration
public float weight { get; set; }
Property Value
worldUpObject
Declaration
public Transform worldUpObject { get; set; }
Property Value
worldUpType
Declaration
public AimConstraint.WorldUpType worldUpType { get; set; }
Property Value
worldUpVector
Declaration
public Vector3 worldUpVector { 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