Contents

lookAtAbsolute(named:on:lookingAlong:orientationWeight:)

Creates a constraint with only an orientational demand in absolute look-at mode.

Declaration

static func lookAtAbsolute(named name: String, on jointName: String, lookingAlong targetAxis: SIMD3<Float>, orientationWeight: SIMD3<Float> = [1, 1, 1]) -> IKRig.Constraint

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.

Discussion