LookAtControl
Rotates an articulated chain toward a target.
- Creatable
Instance.new("LookAtControl")- Inherits
- RigControlInstance
- Replication
- Standard
Behavior
LookAtControl rotates an articulated chain toward a target.
Summary
The attachment's primary local axis.
The number of joints included in the controlled chain.
The first Part in the articulated chain controlled by this rig control.
Whether this look at control is enabled.
The Part at the end of the controlled chain.
The maximum pitch rotation permitted by the look-at control.
The maximum yaw rotation permitted by the look-at control.
The relative priority used to order or process this object.
The smoothing time applied when approaching the rig-control target, in seconds.
The Instance providing the world-space target for this rig control.
The linear position sought by a servo, in studs.
The contribution of this pose or rig control to the resulting animation.
Returns this instance if it is an ExecutionGroup.
Properties
Axis
LookAtControl.Axis: Vector3 = Vector3.new(0, 0, -1)The attachment's primary local axis.
ChainLength
LookAtControl.ChainLength: number = 1The number of joints included in the controlled chain.
ChainRoot
LookAtControl.ChainRoot: BasePart? = nilThe first Part in the articulated chain controlled by this rig control.
Enabled
LookAtControl.Enabled: boolean = trueWhether this look at control is enabled.
EndEffector
LookAtControl.EndEffector: BasePart? = nilThe Part at the end of the controlled chain.
MaxPitch
LookAtControl.MaxPitch: number = 45The maximum pitch rotation permitted by the look-at control.
MaxYaw
LookAtControl.MaxYaw: number = 75The maximum yaw rotation permitted by the look-at control.
Priority
LookAtControl.Priority: number = 0The relative priority used to order or process this object.
SmoothTime
LookAtControl.SmoothTime: number = 0The smoothing time applied when approaching the rig-control target, in seconds.
Target
LookAtControl.Target: Instance? = nilThe Instance providing the world-space target for this rig control.
TargetPosition
LookAtControl.TargetPosition: Vector3 = Vector3.new(0, 0, 0)The linear position sought by a servo, in studs.
Weight
LookAtControl.Weight: number = 1The contribution of this pose or rig control to the resulting animation.
Methods
GetExecutionGroup
LookAtControl:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying