lookAtAdditive(named:on:lookingAlong:orientationWeight:)
Creates a constraint with only an orientational demand in additive look-at mode.
Declaration
static func lookAtAdditive(named name: String, on jointName: String, lookingAlong targetAxis: SIMD3<Float>, orientationWeight: SIMD3<Float> = [1, 1, 1]) -> IKRig.ConstraintParameters
- 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.