Creates a constraint with only an orientational demand in absolute look-at mode.
- Parameters:
- name: The rig unique name of the constraint
- jointName: The name of the joint to constrain.
- targetAxis: The axis from the constrained joint to look-at target position in the model space
of the entity.
- orientationWeight: The weight of the orientation demand.
- Seealso: `IKOrientationDemand.Mode.absoluteLookAt`
Creates a constraint with only an orientational demand in additive look-at mode.
- Parameters:
- name: The rig unique name of the constraint
- jointName: The name of the joint to constrain.
- targetAxis: The axis from the constrained joint to look-at target position in the local space
of the joint.
- orientationWeight: The weight of the orientation demand.
- Seealso: `IKOrientationDemand.Mode.additiveLookAt`
get · iOS 18.0+
positionDemand
TypeScript
get positionDemand(): (IKRig_Constraint_IKPositionDemand) | null
Swift declaration
var positionDemand: IKRig.Constraint.IKPositionDemand?
The settings of the positional demand.
set · iOS 18.0+
positionDemand
TypeScript
set positionDemand(value: (IKRig_Constraint_IKPositionDemand) | null)
Swift declaration
var positionDemand: IKRig.Constraint.IKPositionDemand?
The settings of the positional demand.
get · iOS 18.0+
orientationDemand
TypeScript
get orientationDemand(): (IKRig_Constraint_IKOrientationDemand) | null
Swift declaration
var orientationDemand: IKRig.Constraint.IKOrientationDemand?
The settings of the orientational demand.
set · iOS 18.0+
orientationDemand
TypeScript
set orientationDemand(value: (IKRig_Constraint_IKOrientationDemand) | null)
Swift declaration
var orientationDemand: IKRig.Constraint.IKOrientationDemand?
The settings of the orientational demand.
get · iOS 18.0+
id
TypeScript
get id(): IKRig_Constraint_ID
Swift declaration
var id: IKRig.Constraint.ID { get }
The identifier of the constraint.
get · iOS 18.0+
name
TypeScript
get name(): string
Swift declaration
var name: String
The name of the constraint.
- Important: Each constraint needs a unique name within a rig.
set · iOS 18.0+
name
TypeScript
set name(value: string)
Swift declaration
var name: String
The name of the constraint.
- Important: Each constraint needs a unique name within a rig.
Creates a constraint with only a positional demand.
- Parameters:
- name: The rig unique name of the constraint
- jointName: The name of the joint to constrain.
- positionWeight: The weight of the position demand.
get · iOS 18.0+
offset
TypeScript
get offset(): Transform
Swift declaration
var offset: Transform
A constraint target offset.
The constraints adds this offset on top of its target. Useful for cases where the target comes from a binding.
set · iOS 18.0+
offset
TypeScript
set offset(value: Transform)
Swift declaration
var offset: Transform
A constraint target offset.
The constraints adds this offset on top of its target. Useful for cases where the target comes from a binding.
Creates a constraint with only an orientation demand.
- Parameters:
- name: The rig unique name of the constraint
- jointName: The name of the joint to constrain.
- orientationWeight: The weight of the orientation demand.
Creates a constraint with both a positional and an orientational demands.
- Parameters:
- name: The rig unique name of the constraint
- jointName: The name of the joint to constrain.
- positionWeight: The weight of the position demand.
- orientationWeight: The weight of the orientation demand.