<sk-target-at-point-constraint>

← prev index next →

Aims every clone of a cloner at one shared target node, turning a chosen local axis to face it — the way to make a whole field of objects track a moving point.

Remarks

This is the aiming member of the PointConstraint family: like every point-constraint it runs a GPU kernel over all of its host's points at once, so thousands of clones can look-at the same target for the cost of one. It is the many-at-once counterpart of sk-target-at-constraint, which aims a single node. Because it only rotates (it moves no positions), it applies to a sk-cloner's clones; on a mesh or spline host, whose output carries positions but no per-vertex orientation, it has nothing to write and is skipped.

Key attributes. target names the node every clone aims at, by #id; its world position is shared across all clones, so animating the target sweeps the whole field. axis chooses which local axis of each clone points at the target (any of the six signed axes, e.g. +y). Optionally, up-reference disambiguates roll about that aim direction, and a field (by #id, a SpatialField) with field-weight-range blends the look-at in by weight — weight 1 fully aims a clone, weight 0 leaves its original rotation — so only part of the field turns.

Related. Its single-node CPU analogue is sk-target-at-constraint. Sibling point-constraints include sk-simple-point-constraint (field-driven translate/scale/rotate) and sk-radial-push-point-constraint.

Serve these docs to run the live example. WebGPU needs a secure context — open this page via grunt serve rather than double-clicking the file. The Markup tab works from disk.

Attributes

AttributeTypeDefaultDescription
targetanimatable <id-ref> The SceneNode that clones should orient toward.
axisanimatable <orientation-axis> ("+x" | "-x" | "+y" | "-y" | "+z" | "-z") "+z" Which local axis of each clone should point at the target.
up-referenceanimatable <id-ref> Optional node whose Y-axis is used as the up reference. reference by id
field-weight-rangeanimatable <field-weight-range> ([<number>, <number>]) The [lo, hi] range the field weight maps onto.
fieldanimatable <id-ref> Optional field that modulates the modifier's effect per-point. reference by id